Skip to main content

Module runner

Module runner 

Source
Expand description

Engine runner - polling loop and event dispatch.

This module contains the main event loop that:

  1. Polls exchanges for fills and quotes
  2. Synthesizes canonical events
  3. Dispatches events to strategies
  4. Executes strategy commands
  5. Syncs fills to upstream API for PnL tracking

Structs§

BacktestFill
Individual fill record for backtest results (serialized to frontend)
BacktestPositionSummary
Final position and PnL summary for one tracked instrument.
BacktestResult
Backtest result summary for JSON output
EngineRunner
Engine runner - drives the main event loop
RunnerConfig
Runner configuration
TradingStats
Trading statistics for meta logging (Poll mode)

Enums§

PollResult
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