Enhance OKXCollector with improved heartbeat and logging functionality

- Added logger parameter to the OKXCollector to enable detailed ping/pong logging.
- Updated message processing methods to maintain heartbeat and track data reception timestamps.
- Adjusted ProductionManager to disable auto-restart and enable full logging for debugging WebSocket issues.
- Enhanced overall logging capabilities to facilitate better monitoring and troubleshooting of data collection processes.
This commit is contained in:
Vasily.onl
2025-06-02 12:09:34 +08:00
parent bc13cfcbe0
commit cecb5fd411
3 changed files with 25 additions and 8 deletions

View File

@@ -58,10 +58,10 @@
- [x] 2.0.2 Enhance data collectors with health monitoring, heartbeat system, and auto-restart capabilities
- [x] 2.0.3 Create collector manager for supervising multiple data collectors with coordinated lifecycle management
- [x] 2.1 Implement OKX WebSocket API connector for real-time data
- [ ] 2.2 Create OHLCV candle aggregation logic with multiple timeframes (1m, 5m, 15m, 1h, 4h, 1d)
- [ ] 2.3 Build data validation and error handling for market data
- [ ] 2.4 Implement Redis channels for real-time data distribution
- [ ] 2.5 Create data storage layer for OHLCV data in PostgreSQL
- [x] 2.2 Create OHLCV candle aggregation logic with multiple timeframes (1m, 5m, 15m, 1h, 4h, 1d)
- [x] 2.3 Build data validation and error handling for market data
- [x] 2.4 Implement Redis channels for real-time data distribution
- [x] 2.5 Create data storage layer for OHLCV data in PostgreSQL
- [ ] 2.6 Add technical indicators calculation (SMA, EMA, RSI, MACD, Bollinger Bands)
- [ ] 2.7 Implement data recovery and reconnection logic for API failures
- [ ] 2.8 Create data collection service with proper logging