-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathenv.production.example
More file actions
36 lines (28 loc) · 1.25 KB
/
env.production.example
File metadata and controls
36 lines (28 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# DeepStack Production Environment Variables
# Copy this to Railway/Render environment settings
# Required: API Keys
ANTHROPIC_API_KEY=sk-ant-xxx # Required for AI analysis
ALPACA_API_KEY=xxx # Required for market data
ALPACA_SECRET_KEY=xxx # Required for market data
# Alpaca Configuration
# Use https://paper-api.alpaca.markets for paper trading
# Use https://api.alpaca.markets for live trading
ALPACA_BASE_URL=https://paper-api.alpaca.markets
# Optional: Alpha Vantage for additional data
ALPHA_VANTAGE_API_KEY=xxx
# Trading Configuration
TRADING_MODE=paper # 'paper' or 'live'
MAX_POSITION_SIZE=0.05 # Max 5% of portfolio per position
MAX_PORTFOLIO_HEAT=0.15 # Max 15% total portfolio risk
DAILY_LOSS_LIMIT=0.02 # Max 2% daily loss
# Server Configuration (Railway sets PORT automatically)
# API_HOST=0.0.0.0 # Default
# API_PORT=8000 # Railway overrides with $PORT
# CORS Configuration
CORS_ORIGINS=https://your-vercel-app.vercel.app,http://localhost:3000
# Logging
LOG_LEVEL=INFO
# Feature Flags
ENABLE_LIVE_TRADING=false # Set to true to enable live trading
ENABLE_OPTIONS=true # Enable options analysis
ENABLE_EMOTIONAL_FIREWALL=true # Enable trading psychology features