Expand description
Bot configuration types and strategy builder.
This module contains:
BotConfig— V2 unified config format- Strategy-specific JSON config structs (GridConfigJson, DCAConfigJson, etc.)
build_strategy()— constructBox<dyn Strategy>from BotConfigbuild_instrument_meta()— construct InstrumentMeta from Market
Structs§
- Arbitrage
Config Json - Arbitrage strategy configuration from JSON
- BotConfig
- Bot configuration - V2 format with markets array. This is the unified config format for all strategies.
- Builder
FeeConfig - Builder fee configuration for JSON config
- DCAConfig
Json - DCA strategy configuration from JSON
- Grid
Config Json - Grid strategy configuration from JSON
- MMConfig
Json - Market Maker strategy configuration
- Orchestrator
Config Json - Parent strategy configuration for grouped child strategies.
- Orchestrator
LegConfig Json - Per-leg range override for orchestrated child strategies.
- Simulation
Config - Simulation configuration for paper trading and backtesting. All fields are optional with sensible defaults.
- Sync
Config Json - Trade syncer configuration for upstream API PnL tracking
Enums§
- Orchestrator
Child Config Json - Generic child strategy plan owned by the orchestrator.
Functions§
- build_
instrument_ meta - Build InstrumentMeta from BotConfig’s primary market.
- build_
instrument_ metas - Build InstrumentMeta for ALL markets in
config.markets[]. - build_
strategy - Build the strategy from a V2 BotConfig. Works identically on native and WASM.