- 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>
22 lines
346 B
Python
22 lines
346 B
Python
from .market_data import (
|
|
TickerBase,
|
|
TickerResponse,
|
|
OHLCVBase,
|
|
OHLCVResponse,
|
|
OHLCVListResponse,
|
|
SyncRequest,
|
|
SyncStatus,
|
|
SyncResponse
|
|
)
|
|
|
|
__all__ = [
|
|
"TickerBase",
|
|
"TickerResponse",
|
|
"OHLCVBase",
|
|
"OHLCVResponse",
|
|
"OHLCVListResponse",
|
|
"SyncRequest",
|
|
"SyncStatus",
|
|
"SyncResponse"
|
|
]
|