Skip to content

SHARKFIn agent class extended HARK class with SHARK features #85

@sbenthall

Description

@sbenthall

There are several features needed by SHARKFin agents that go beyond HARK agents.
These include:

  • A store of number of shares owned
  • Some metadata that helps with the fact that we are using daily market returns while HARK agents generally operate quarterly or annually -- this is handled by the macro_day property

Currently, these are handled through monkey-patching / direct variable assignment on the AgentType objects by the simulation code.
This is a mess because these interventions are ad hoc and there's nothing except the simulation code logic to maintain the necessary invariants in the underlying data structures.

We should have better containment on this functionality, and locate it on the agent objects themselves, so the simulation code can focus on the simulation loop structure not the agent manipulations.

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions