Simulation

This section outlines the agents, events, and overall simulation context.

StockMarketABM.SimulationEvents.AgentActivationType
AgentActivation(agent; reason=:scheduled, payload=(; ))

Signal that the given agent should make a decision. Optional reason and payload allow handlers to specialise behaviour (e.g. timer-driven activation versus reaction to a fill).

source
StockMarketABM.SimulationEvents.OrderExpiryCheckType
OrderExpiryCheck(order_id, agent, instrument; expire_at, submitted_at=expire_at)

Request that the market layer verify whether an order is still resting at expire_at. Handlers should cancel the order if it remains active when the event fires.

source