# Market Data Source Environment Configuration
# Copy this file to .env and fill in your actual values
# ============================================
# CouchDB Configuration
# ============================================
# CouchDB server URL
COUCHDB_URL=http://localhost:5984
# CouchDB authentication (optional)
# COUCHDB_USERNAME=admin
# COUCHDB_PASSWORD=your_password_here
# Default database name for market data
COUCHDB_DATABASE=market_data
# ============================================
# Market Data API Keys
# ============================================
# Alpha Vantage API Key (for stock market data)
# Get your free key at: https://www.alphavantage.co/support/#api-key
# ALPHA_VANTAGE_API_KEY=your_api_key_here
# Polygon.io API Key (for real-time and historical market data)
# Get your key at: https://polygon.io/
# POLYGON_API_KEY=your_api_key_here
# Finnhub API Key (for stock market data and company fundamentals)
# Get your free key at: https://finnhub.io/
# FINNHUB_API_KEY=your_api_key_here
# IEX Cloud API Key (for financial data)
# Get your key at: https://iexcloud.io/
# IEX_CLOUD_API_KEY=your_api_key_here
# Twelve Data API Key (for stocks, forex, crypto, and more)
# Get your key at: https://twelvedata.com/
# TWELVE_DATA_API_KEY=your_api_key_here
# Yahoo Finance API Key (if using RapidAPI)
# Get your key at: https://rapidapi.com/
# YAHOO_FINANCE_API_KEY=your_api_key_here
# Quandl API Key (for financial and economic data)
# Get your key at: https://www.quandl.com/
# QUANDL_API_KEY=your_api_key_here
# ============================================
# Cryptocurrency Exchange API Keys
# ============================================
# Binance API Configuration
# Get your keys at: https://www.binance.com/en/my/settings/api-management
# BINANCE_API_KEY=your_api_key_here
# BINANCE_SECRET_KEY=your_secret_key_here
# Coinbase API Configuration
# Get your keys at: https://www.coinbase.com/settings/api
# COINBASE_API_KEY=your_api_key_here
# COINBASE_SECRET_KEY=your_secret_key_here
# ============================================
# General Configuration
# ============================================
# Directory for storing exported data files
# DATA_DIRECTORY=./data
# Logging level (trace, debug, info, warn, error)
# LOG_LEVEL=info
# Maximum number of retries for failed API requests
# MAX_RETRIES=3
# Request timeout in seconds
# REQUEST_TIMEOUT=30
# ============================================
# Export Configuration
# ============================================
# Default export format (csv, json, jsonl, couchdb)
# DEFAULT_EXPORT_FORMAT=csv
# Batch size for bulk export operations
# EXPORT_BATCH_SIZE=1000
# ============================================
# Development/Testing
# ============================================
# Enable debug mode for verbose output
# DEBUG=false
# Test environment flag
# TEST_ENV=false
# Mock data mode (uses generated data instead of real API calls)
# MOCK_MODE=false