Expand description
Engine runner - polling loop and event dispatch.
This module contains the main event loop that:
- Polls exchanges for fills and quotes
- Synthesizes canonical events
- Dispatches events to strategies
- Executes strategy commands
- Syncs fills to upstream API for PnL tracking
Structs§
- Backtest
Fill - Individual fill record for backtest results (serialized to frontend)
- Backtest
Position Summary - Final position and PnL summary for one tracked instrument.
- Backtest
Result - Backtest result summary for JSON output
- Engine
Runner - Engine runner - drives the main event loop
- Runner
Config - Runner configuration
- Trading
Stats - Trading statistics for meta logging (Poll mode)
Enums§
- Poll
Result - Message from polling tasks to the main loop
Functions§
- spawn_
runner - Spawn the runner as a background task
- spawn_
runner_ with_ syncer - Spawn the runner as a background task with optional trade syncer and account syncer