Configuration Reference
Planar is configured through TOML files plus environment variables. The full guide is in Configuration; this page is a quick reference.
Files
| Path | Purpose |
|---|---|
user/planar.toml | Strategies, exchanges, data sources, logging |
user/secrets.toml | API keys and credentials (never commit to version control) |
Environment Variables
| Variable | Effect |
|---|---|
PLANAR_CONFIG_PATH | Path to a custom planar.toml |
PLANAR_SECRETS_PATH | Path to a custom secrets.toml |
PLANAR_LOG_LEVEL | Override the logging level |
PLANAR_MODE | Default execution mode |
Strategy Entries
[MyStrategy]
include_file = "strategies/MyStrategy.jl"
mode = "Paper" # Paper, Live, or Simulation
[MyStrategy.params] # strategy-specific parameters
risk_level = 0.02
max_positions = 5Package-based strategies are registered under [sources]:
[sources]
AdvancedStrategy = "strategies/AdvancedStrategy/Project.toml"Exchange Entries
[binance]
leveraged = "from" # "from", "to", or "both"
sandbox = false
[bybit]
futures = true
testnet = falseData and Logging
[data]
cache_enabled = true
cache_duration = "1h"
default_timeframe = "1m"
[logging]
level = "INFO" # DEBUG, INFO, WARN, ERRORSecrets
[exchanges.binance]
apiKey = "..."
secret = "..."See Secrets Management for the full structure and security best practices.
See Also
- Configuration Guide - Full documentation
- Installation Guide - First-time setup
- Getting Started - Begin here