mirror of
https://github.com/chrisnov-it/quantumbotx.git
synced 2026-07-27 18:57:47 +00:00
120 lines
4.4 KiB
Bash
120 lines
4.4 KiB
Bash
# =========================
|
|
# QuantumBotX Environment Example
|
|
# =========================
|
|
# Copy this file to .env and fill required values.
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Runtime Mode
|
|
# -----------------------------------------------------------------------------
|
|
# Informational mode selector used by docs and future routing.
|
|
# Current runtime still validates MT5 readiness through run.py bootstrap flags.
|
|
# Options: CCXT | MT5
|
|
BROKER_TYPE=CCXT
|
|
|
|
# Temporary hardening flags (0 = disabled, 1 = enabled)
|
|
ENABLE_AI_MENTOR=0
|
|
ENABLE_STRATEGY_SWITCHER=0
|
|
ENABLE_SEASONAL_MODE=0
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Flask / App
|
|
# -----------------------------------------------------------------------------
|
|
FLASK_DEBUG=false
|
|
FLASK_HOST=127.0.0.1
|
|
FLASK_PORT=5000
|
|
SECRET_KEY=change-me-with-a-long-random-string-at-least-24-chars
|
|
# Development-only override; keep 0 in production
|
|
ALLOW_INSECURE_SECRET_KEY=0
|
|
|
|
# MT5 bootstrap controls
|
|
# If 1, skip MT5 bootstrap entirely (useful on machines without MetaTrader5 module)
|
|
SKIP_MT5_INIT=0
|
|
# If 1, app exits when MT5 is not ready
|
|
REQUIRE_MT5=0
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Logging / Timeouts
|
|
# -----------------------------------------------------------------------------
|
|
LOG_LEVEL=INFO
|
|
BACKTEST_LOG_LEVEL=INFO
|
|
LOG_FILE=quantumbotx.log
|
|
HTTP_TIMEOUT_SECONDS=10
|
|
OLLAMA_TIMEOUT_SECONDS=15
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Risk Guardrails (0 = disabled)
|
|
# -----------------------------------------------------------------------------
|
|
# Percent of account balance allowed as daily loss
|
|
MAX_DAILY_LOSS_PERCENT=0
|
|
# Absolute currency amount allowed as daily loss
|
|
MAX_DAILY_LOSS_AMOUNT=0
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# CCXT Profile (for BROKER_TYPE=CCXT)
|
|
# -----------------------------------------------------------------------------
|
|
# Market type selector (current bot runtime still optimized for SPOT flow)
|
|
# Options: spot | futures
|
|
CCXT_MARKET_TYPE=spot
|
|
|
|
# Keep both names for compatibility between old/new config readers.
|
|
CCXT_EXCHANGE=binance
|
|
EXCHANGE_ID=binance
|
|
# Spot environment selector:
|
|
# - testnet: classic Spot Testnet (testnet.binance.vision)
|
|
# - demo : Spot Demo (demo-api.binance.com)
|
|
# - live : production spot endpoint
|
|
CCXT_SPOT_ENV=testnet
|
|
# Optional override when CCXT_SPOT_ENV=demo
|
|
CCXT_SPOT_DEMO_BASE_URL=https://demo-api.binance.com
|
|
# Legacy fallback (used when CCXT_SPOT_ENV is not set)
|
|
CCXT_TESTNET=true
|
|
CCXT_DRY_RUN=1
|
|
# Cooldown after each executed trade (in candles), set 0 to disable
|
|
CCXT_TRADE_COOLDOWN_CANDLES=3
|
|
# Loop log mode: transactions | changes | all | off
|
|
CCXT_LOOP_LOG_MODE=transactions
|
|
# Heartbeat seconds for mode=changes (0 = no heartbeat)
|
|
CCXT_LOOP_LOG_HEARTBEAT_SEC=0
|
|
# Portfolio filter: 0 = show only symbols with trade history, 1 = include seed/faucet balances too
|
|
CCXT_PORTFOLIO_INCLUDE_BALANCE_ONLY=0
|
|
CCXT_API_KEY=your_ccxt_api_key
|
|
CCXT_API_SECRET=your_ccxt_api_secret
|
|
CCXT_API_PASSWORD=
|
|
|
|
# Optional split credentials for SPOT (fallback to CCXT_API_* if empty)
|
|
CCXT_SPOT_API_KEY=
|
|
CCXT_SPOT_API_SECRET=
|
|
CCXT_SPOT_API_PASSWORD=
|
|
|
|
# Optional dedicated credentials for Futures test/live
|
|
# Common exchange ids in CCXT: binanceusdm (USDⓈ-M), binancecoinm (COIN-M)
|
|
CCXT_FUTURES_EXCHANGE=binanceusdm
|
|
CCXT_FUTURES_TESTNET=true
|
|
CCXT_FUTURES_API_KEY=
|
|
CCXT_FUTURES_API_SECRET=
|
|
CCXT_FUTURES_API_PASSWORD=
|
|
|
|
# Legacy alias used by older broker factory paths
|
|
BINANCE_API_KEY=
|
|
BINANCE_SECRET_KEY=
|
|
BINANCE_TESTNET=true
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# MT5 Profile (for BROKER_TYPE=MT5 or when MT5 bootstrap is enabled)
|
|
# -----------------------------------------------------------------------------
|
|
MT5_LOGIN=your_mt5_account_number
|
|
MT5_PASSWORD=your_mt5_password
|
|
MT5_SERVER=MetaQuotes-Demo
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# TradingView webhook listener
|
|
# -----------------------------------------------------------------------------
|
|
TRADINGVIEW_WEBHOOK_HOST=127.0.0.1
|
|
TRADINGVIEW_WEBHOOK_PORT=5001
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Optional Integrations
|
|
# -----------------------------------------------------------------------------
|
|
CMC_API_KEY=
|
|
CMC_API_BASE_URL=https://pro-api.coinmarketcap.com
|