- 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>
42 lines
822 B
Plaintext
42 lines
822 B
Plaintext
# =============================================================================
|
|
# Data Service - Requirements
|
|
# =============================================================================
|
|
# Python 3.11+
|
|
# Puerto: 8002
|
|
# =============================================================================
|
|
|
|
# Web Framework
|
|
fastapi==0.109.0
|
|
uvicorn[standard]==0.27.0
|
|
python-multipart==0.0.6
|
|
|
|
# Database
|
|
asyncpg==0.29.0
|
|
sqlalchemy[asyncio]==2.0.25
|
|
psycopg2-binary==2.9.9
|
|
|
|
# HTTP Client
|
|
httpx==0.26.0
|
|
aiohttp==3.9.1
|
|
|
|
# Data Processing (opcional - no requerido para core)
|
|
# pandas>=2.2.0 # Requiere Python 3.9-3.12
|
|
# numpy>=2.0.0
|
|
|
|
# Cache (opcional)
|
|
redis==5.0.1
|
|
|
|
# Environment
|
|
python-dotenv==1.0.0
|
|
|
|
# Utilities
|
|
pydantic==2.5.3
|
|
pydantic-settings==2.1.0
|
|
|
|
# Logging
|
|
structlog==24.1.0
|
|
|
|
# Date/Time
|
|
python-dateutil==2.8.2
|
|
pytz==2024.1
|