# QuantDinger Docker Environment Configuration
# Copy this file to .env and modify the settings
# cp docker.env.example backend_api_python/.env

# =========================
# Authentication
# =========================
SECRET_KEY=your-secure-secret-key-change-me
ADMIN_USER=admin
ADMIN_PASSWORD=your-secure-password

# =========================
# Network Configuration
# =========================
PYTHON_API_HOST=0.0.0.0
PYTHON_API_PORT=5000
PYTHON_API_DEBUG=False
CORS_ORIGINS=*

# =========================
# OpenRouter / LLM (Required for AI analysis)
# =========================
OPENROUTER_API_KEY=your-openrouter-api-key
OPENROUTER_API_URL=https://openrouter.ai/api/v1/chat/completions
OPENROUTER_MODEL=openai/gpt-4o
OPENROUTER_TEMPERATURE=0.7
OPENROUTER_MAX_TOKENS=4000
OPENROUTER_TIMEOUT=300

# =========================
# Data Source API Keys (fill as needed)
# =========================
# Finnhub (US stocks / forex)
FINNHUB_API_KEY=

# Tiingo (optional backup data source)
TIINGO_API_KEY=

# =========================
# Notification Settings (optional)
# =========================
# Telegram
TELEGRAM_BOT_TOKEN=

# Email / SMTP
SMTP_HOST=
SMTP_PORT=587
SMTP_USER=
SMTP_PASSWORD=
SMTP_FROM=

# Twilio SMS
TWILIO_ACCOUNT_SID=
TWILIO_AUTH_TOKEN=
TWILIO_FROM_NUMBER=

# Webhook
SIGNAL_WEBHOOK_URL=
SIGNAL_WEBHOOK_TOKEN=

# =========================
# Strategy Execution Settings
# =========================
ENABLE_PENDING_ORDER_WORKER=true
STRATEGY_TICK_INTERVAL_SEC=10

# =========================
# Search Engine (optional, for AI analysis)
# =========================
SEARCH_PROVIDER=google
SEARCH_GOOGLE_API_KEY=
SEARCH_GOOGLE_CX=

# =========================
# Proxy Configuration (if network requires)
# =========================
PROXY_PORT=
PROXY_HOST=127.0.0.1
PROXY_SCHEME=socks5h
