# ============================================================ # Crypto Trading Bot Configuration # ============================================================ # Mode: "paper" for simulated trading, "live" for real money mode: paper # Exchange settings exchange: name: krakenfutures # API keys are loaded from .env file, not stored here # Coins to trade — add more entries to trade multiple coins coins: - symbol: BTC/USD:USD leverage: 1 margin_mode: isolated # isolated | cross capital_allocation: 500 # USD allocated to this coin strategy: average_type: sma # sma | ema | donchian average_period: 6 envelopes: [0.07, 0.11, 0.14] stop_loss: 0.40 # 40% from average entry price price_jump_pct: null # null = disabled; e.g. 0.30 = 30% close-all rule trade_direction: both # both | long | short - symbol: ETH/USD:USD leverage: 1 margin_mode: isolated capital_allocation: 300 strategy: average_type: sma average_period: 5 envelopes: [0.07, 0.11, 0.14] stop_loss: 0.40 price_jump_pct: null trade_direction: both # Risk Manager — circuit breaker to protect capital risk_manager: enabled: true session: schedule: daily # daily | one_time start_time: "00:00" # HH:MM in local time duration_hours: 24 rules: max_loss_pct: 10.0 # Max loss as % of deposit at session start max_loss_per_trade: 100 # Max loss on a single trade (USDT) max_trades: 50 # Max trades per session max_losing_trades: 15 # Max total losing trades per session max_consecutive_losses: 5 include_open_positions: true open_position_multiplier: 1.15 # Unrealized P&L safety buffer blocking: mode: soft # soft = block new trades; hard = also close positions duration: end_of_session # 15m | 30m | 2h | end_of_session | end_of_day # Telegram notifications notifications: telegram: enabled: false # Set to true after configuring bot token # bot_token and chat_id loaded from .env alert_on: - trade_opened - trade_closed - risk_blocked - error - bot_started - bot_stopped # Backtesting settings (used by scripts/run_backtest.py) backtest: start_date: "2021-01-01" end_date: null # null = up to latest available data initial_balance: 1000 open_fee_rate: 0.0002 # Maker fee (Kraken Futures) close_fee_rate: 0.0005 # Taker fee (Kraken Futures) # Logging logging: level: INFO # DEBUG | INFO | WARNING | ERROR file: logs/bot.log max_bytes: 10485760 # 10 MB backup_count: 5