Expand description
Optional framework-side services wired in via builder methods on
Bot:
MarketFeedService—Bot::with_market_source(...). Drives aMarketSourceunder supervisor control; the source publishes events to the in-processMarketDataBus(the bus reference is the source implementor’s responsibility — typically obtained viabot.market_data_bus().clone()before construction).FillRoutingService—Bot::with_fill_source(...). Polls aFillSource, callsBrain::on_fillon each brain, refreshes the per-symbol position cache from the exchange, and auto-feeds realised PnL into the risk gates using weighted-average entry accounting.CandlePollerService—Bot::with_candle_poller(...). Periodic poll of aCandleSource; publishes the newest closed candle for each(symbol, interval)pair to the market-data bus.
Structs§
- Candle
Poller Service - Periodic poll of a
CandleSourcefor a single(symbol, interval)pair. Publishes each newly-closed candle to theMarketDataBus. - Fill
Routing Service - Routes fills from a
FillSourceto every brain, refreshes the position cache, and auto-feeds realised PnL into the risk state. - Market
Feed Service - Drives a
MarketSourceunder supervisor control.