Skip to main content

Module bot

Module bot 

Source
Expand description

The Bot entry point and its BotConfig builder.

Bot::new validates configuration and constructs a supervised runtime. Bot::run_until_shutdown starts the framework services and blocks until shutdown is triggered (via signal or BotHandle::shutdown).

Structs§

Bot
The embedded trading bot.
BotConfig
Configuration for a Bot.
BotConfigBuilder
Builder for BotConfig.
RiskConfig
Risk-layer config for a symbol: session-PnL cap, circuit breaker, and position sizing. Used both as the bot-wide default (BotConfig::risk) and as a per-symbol override (BotConfig::per_symbol_risk, set via BotConfigBuilder::symbol_risk).

Enums§

BracketFailurePolicy
What the execution service does when a bracket entry has been filled but its protective stop-loss leg could not be placed.