Configuration Reference

Planar is configured through TOML files plus environment variables. The full guide is in Configuration; this page is a quick reference.

Files

PathPurpose
user/planar.tomlStrategies, exchanges, data sources, logging
user/secrets.tomlAPI keys and credentials (never commit to version control)

Environment Variables

VariableEffect
PLANAR_CONFIG_PATHPath to a custom planar.toml
PLANAR_SECRETS_PATHPath to a custom secrets.toml
PLANAR_LOG_LEVELOverride the logging level
PLANAR_MODEDefault 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 = 5

Package-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 = false

Data and Logging

[data]
cache_enabled = true
cache_duration = "1h"
default_timeframe = "1m"

[logging]
level = "INFO"  # DEBUG, INFO, WARN, ERROR

Secrets

[exchanges.binance]
apiKey = "..."
secret = "..."

See Secrets Management for the full structure and security best practices.

See Also