Expand description
Unified TOML configuration with environment variable overrides.
§Loading order
- Parse TOML file (or use defaults if the file is missing)
- Apply environment variable overrides on top
§Environment variable mapping
| Env var | Config field |
|---|---|
AGENT_MODE | agent.mode |
AGENT_INTERVAL_SECS | agent.interval_secs |
EXCHANGE_IS_MAINNET | exchange.is_mainnet |
EXCHANGE_VAULT_ADDRESS | exchange.vault_address |
RISK_MAX_POSITION_USDC | risk.max_position_usdc |
RISK_MAX_LEVERAGE | risk.max_leverage |
RISK_MAX_OPEN_POSITIONS | risk.max_open_positions |
RISK_MAX_DAILY_LOSS_USDC | risk.max_daily_loss_usdc |
STRATEGY_NAME | strategy.name |
STRATEGY_COMPOSER_PROFILE | strategy.composer_profile |
NOTIFIER_DISCORD_WEBHOOK | notifier.discord_webhook |
NOTIFIER_ENABLED | notifier.enabled |
ANTHROPIC_API_KEY | credentials.anthropic_api_key |
HYPERLIQUID_PRIVATE_KEY | credentials.hyperliquid_private_key |
Structs§
- Agent
Section - Top-level agent behaviour settings.
- AppConfig
- Unified application configuration loaded from TOML with env var overrides.
- Credentials
Section - Secret credentials (API keys, private keys).
- Exchange
Section - Exchange connection settings.
- Notifier
Section - Notification settings.
- Risk
Section - Risk management limits.
- Strategy
Section - Strategy selection.
Enums§
- Config
Error - Errors that can occur when loading configuration.