pub struct BotConfig {Show 16 fields
pub environment: String,
pub private_key: String,
pub address: String,
pub vault_address: Option<String>,
pub base_url_override: Option<String>,
pub strategy_type: String,
pub markets: Vec<MarketConfig>,
pub poll_delay_ms: u64,
pub grid: Option<GridConfigJson>,
pub mm: Option<MMConfigJson>,
pub dca: Option<DCAConfigJson>,
pub arbitrage: Option<ArbitrageConfigJson>,
pub orchestrator: Option<OrchestratorConfigJson>,
pub builder_fee: Option<BuilderFeeConfig>,
pub hip3: Option<Hip3ConfigJson>,
pub sync: Option<SyncConfigJson>,
}Expand description
V2 Bot configuration - the full config format for all strategies.
This is the schema-generation version of BotConfig. It uses flat
MarketConfig structs (for clean JSON Schema output), unlike the engine’s
BotConfig which uses typed bot_core::Market enums for runtime parsing.
Fields§
§environment: StringEnvironment: “testnet” or “mainnet”
private_key: StringPrivate key (hex, with or without 0x prefix)
address: StringWallet address
vault_address: Option<String>Optional vault address
base_url_override: Option<String>Optional Hyperliquid base URL override. When set, both /info and /exchange requests use this gateway.
strategy_type: StringStrategy type: “grid”, “mm”, “dca”, “arbitrage”, or “orchestrator”
markets: Vec<MarketConfig>Markets to trade on (V2 format)
poll_delay_ms: u64Polling delay in milliseconds
grid: Option<GridConfigJson>Grid strategy configuration
mm: Option<MMConfigJson>Market Maker strategy configuration
dca: Option<DCAConfigJson>DCA strategy configuration
arbitrage: Option<ArbitrageConfigJson>Arbitrage strategy configuration
orchestrator: Option<OrchestratorConfigJson>Orchestrator strategy configuration
builder_fee: Option<BuilderFeeConfig>Builder fee configuration
hip3: Option<Hip3ConfigJson>HIP-3 configuration
sync: Option<SyncConfigJson>Trade sync configuration
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BotConfig
impl<'de> Deserialize<'de> for BotConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for BotConfig
impl JsonSchema for BotConfig
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read more