kalshi-backtest/config.toml
2026-01-25 01:20:44 -07:00

32 lines
589 B
TOML

mode = "paper"
[kalshi]
base_url = "https://api.elections.kalshi.com/trade-api/v2"
poll_interval_secs = 60
rate_limit_per_sec = 2
[trading]
initial_capital = 10000.0
max_positions = 100
kelly_fraction = 0.25
max_position_pct = 0.10
take_profit_pct = 0.50
stop_loss_pct = 0.99
max_hold_hours = 48
[persistence]
db_path = "kalshi-paper.db"
[web]
enabled = true
bind_addr = "127.0.0.1:3030"
[circuit_breaker]
max_drawdown_pct = 0.15
max_daily_loss_pct = 0.05
max_positions = 100
max_single_position_pct = 0.10
max_consecutive_errors = 5
max_fills_per_hour = 200
max_fills_per_day = 1000