trading-platform-data-service/.env.example
rckrdmrd 01683a850f feat: Initial Data Service implementation
- FastAPI service for market data synchronization from Polygon.io
- Async PostgreSQL integration with SQLAlchemy
- API endpoints for tickers, OHLCV data, and sync operations
- Rate-limited Polygon.io API client
- Background task support for historical data sync
- Support for 6 assets: XAUUSD, EURUSD, BTCUSD, GBPUSD, USDJPY, AUDUSD

Endpoints:
- GET /api/v1/tickers - List all tickers
- GET /api/v1/tickers/{symbol}/ohlcv - Get OHLCV data
- GET /api/v1/tickers/{symbol}/latest - Get latest price
- POST /api/v1/sync/historical - Start historical sync
- POST /api/v1/sync/ticker/{symbol} - Sync single ticker

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-13 13:28:18 -06:00

27 lines
654 B
Plaintext

# =============================================================================
# Data Service - Environment Variables
# =============================================================================
# Server
PORT=8002
HOST=0.0.0.0
ENVIRONMENT=development
LOG_LEVEL=INFO
# Database
DATABASE_URL=postgresql+asyncpg://trading_user:trading_dev_2025@localhost:5432/trading_platform
# Polygon.io API
POLYGON_API_KEY=your_polygon_api_key_here
POLYGON_BASE_URL=https://api.polygon.io
# Rate Limiting (requests per minute)
POLYGON_RATE_LIMIT=5
# Sync Settings
SYNC_BATCH_SIZE=1000
SYNC_HISTORY_DAYS=365
# Redis (optional)
REDIS_URL=redis://localhost:6379/0