65 lines
2.4 KiB
Plaintext
65 lines
2.4 KiB
Plaintext
# TradingAgents Environment Configuration
|
|
# Copy this file to .env and fill in your actual values
|
|
# NEVER commit .env to version control!
|
|
|
|
# ============================================================================
|
|
# LLM Provider API Keys (Choose one or multiple)
|
|
# ============================================================================
|
|
|
|
# OpenAI (GPT-4, GPT-4o, o1-preview, etc.)
|
|
OPENAI_API_KEY=your_openai_api_key_here
|
|
|
|
# Anthropic Claude (Recommended for deep reasoning!)
|
|
# Get your key from: https://console.anthropic.com/
|
|
ANTHROPIC_API_KEY=your_anthropic_api_key_here
|
|
|
|
# Google Gemini (Optional)
|
|
# GOOGLE_API_KEY=your_google_api_key_here
|
|
|
|
# ============================================================================
|
|
# Data Provider API Keys
|
|
# ============================================================================
|
|
|
|
# Alpha Vantage (Free tier available)
|
|
# Get your key from: https://www.alphavantage.co/support/#api-key
|
|
ALPHA_VANTAGE_API_KEY=your_alpha_vantage_api_key_here
|
|
|
|
# ============================================================================
|
|
# Broker API Keys (for live/paper trading)
|
|
# ============================================================================
|
|
|
|
# Alpaca (Free paper trading!)
|
|
# Get keys from: https://alpaca.markets/
|
|
# ALPACA_API_KEY=your_alpaca_api_key_here
|
|
# ALPACA_SECRET_KEY=your_alpaca_secret_key_here
|
|
# ALPACA_PAPER_TRADING=true # Set to false for live trading
|
|
|
|
# Interactive Brokers (Advanced users)
|
|
# IB_ACCOUNT=your_ib_account_number
|
|
# IB_HOST=127.0.0.1
|
|
# IB_PORT=7497 # 7497 for paper, 7496 for live
|
|
|
|
# ============================================================================
|
|
# TradingAgents Configuration
|
|
# ============================================================================
|
|
|
|
# Custom data and results directories (optional)
|
|
# TRADINGAGENTS_DATA_DIR=/path/to/your/data
|
|
# TRADINGAGENTS_RESULTS_DIR=/path/to/your/results
|
|
|
|
# Logging level (DEBUG, INFO, WARNING, ERROR, CRITICAL)
|
|
# LOG_LEVEL=INFO
|
|
|
|
# LLM Provider Selection (openai, anthropic, google)
|
|
# LLM_PROVIDER=anthropic
|
|
|
|
# Custom backend URL for OpenAI-compatible APIs (ollama, openrouter, etc.)
|
|
# OPENAI_BASE_URL=https://api.openai.com/v1
|
|
|
|
# ============================================================================
|
|
# Web Interface Configuration (optional)
|
|
# ============================================================================
|
|
|
|
# Chainlit settings (for web UI)
|
|
# CHAINLIT_AUTH_SECRET=your_secret_key_here
|
|
# CHAINLIT_PORT=8000 |