Skip to main content

Module config

Module config 

Source
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() — construct Box<dyn Strategy> from BotConfig
  • build_instrument_meta() — construct InstrumentMeta from Market

Structs§

ArbitrageConfigJson
Arbitrage strategy configuration from JSON
BotConfig
Bot configuration - V2 format with markets array. This is the unified config format for all strategies.
BuilderFeeConfig
Builder fee configuration for JSON config
DCAConfigJson
DCA strategy configuration from JSON
GridConfigJson
Grid strategy configuration from JSON
MMConfigJson
Market Maker strategy configuration
OrchestratorConfigJson
Parent strategy configuration for grouped child strategies.
OrchestratorLegConfigJson
Per-leg range override for orchestrated child strategies.
SimulationConfig
Simulation configuration for paper trading and backtesting. All fields are optional with sensible defaults.
SyncConfigJson
Trade syncer configuration for upstream API PnL tracking

Enums§

OrchestratorChildConfigJson
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.