# FinStack MCP Server Configuration
# Copy this to .env and fill in your values

# ===== FREE DATA SOURCES (no key needed for basic usage) =====
# yfinance: No API key required
# SEC EDGAR: No API key required (but set a user agent)
SEC_EDGAR_USER_AGENT="FinStack/0.1.0 your-email@example.com"

# ===== OPTIONAL: Enhanced Data Sources =====
# Alpha Vantage (free tier: 25 requests/day)
# Get yours at: https://www.alphavantage.co/support/#api-key
ALPHA_VANTAGE_API_KEY=""

# CoinGecko (free tier: 30 calls/min)
# Get yours at: https://www.coingecko.com/en/api
COINGECKO_API_KEY=""

# ===== HOSTED MODE (Phase 2+) =====
# Only needed if you're running the hosted/paid version
FINSTACK_MODE="free"  # free | pro | enterprise
FINSTACK_API_KEY=""    # For hosted mode authentication
STRIPE_SECRET_KEY=""   # For payment processing
STRIPE_WEBHOOK_SECRET=""
RAZORPAY_KEY_ID=""
RAZORPAY_KEY_SECRET=""

# ===== SERVER CONFIG =====
FINSTACK_HOST="127.0.0.1"
FINSTACK_PORT=8000
FINSTACK_LOG_LEVEL="INFO"
FINSTACK_CACHE_TTL_QUOTES=300      # 5 minutes for live quotes
FINSTACK_CACHE_TTL_FUNDAMENTALS=3600  # 1 hour for fundamentals
FINSTACK_CACHE_TTL_HISTORICAL=86400   # 24 hours for historical data
