# Data Service Configuration - Trading Platform Trading Platform # Copy to .env and fill in your values # ============================================ # Server Configuration # ============================================ HOST=0.0.0.0 PORT=3084 LOG_LEVEL=INFO # ============================================ # Database Configuration # ============================================ DB_HOST=localhost DB_PORT=5432 DB_NAME=trading_platform DB_USER=trading_user DB_PASSWORD=trading_user_dev_2025 # ============================================ # Polygon.io / Massive.com API # Get your API key at: https://polygon.io or https://massive.com # ============================================ POLYGON_API_KEY=your_api_key_here POLYGON_BASE_URL=https://api.polygon.io POLYGON_RATE_LIMIT=5 POLYGON_TIER=basic # basic, starter, advanced # ============================================ # MetaAPI.cloud (for MT4/MT5 access) # Get your token at: https://metaapi.cloud # ============================================ METAAPI_TOKEN=your_metaapi_token_here METAAPI_ACCOUNT_ID=your_account_id_here # ============================================ # Direct MT4 Connection (alternative to MetaAPI) # ============================================ MT4_SERVER=your_broker_server:443 MT4_LOGIN=your_account_number MT4_PASSWORD=your_password MT4_INVESTOR_MODE=true # true for read-only, false for trading # ============================================ # Sync Settings # ============================================ SYNC_INTERVAL_MINUTES=5 BACKFILL_DAYS=30 # ============================================ # Logging # ============================================ LOG_LEVEL=INFO