Update OKX configuration and aggregation logic for enhanced multi-timeframe support

- Increased health check interval from 30s to 120s in `okx_config.json`.
- Added support for additional timeframes (1s, 5s, 10s, 15s, 30s) in the aggregation logic across multiple components.
- Updated `CandleProcessingConfig` and `RealTimeCandleProcessor` to handle new timeframes.
- Enhanced validation and parsing functions to include new second-based timeframes.
- Updated database schema to support new timeframes in `schema_clean.sql`.
- Improved documentation to reflect changes in multi-timeframe aggregation capabilities.
This commit is contained in:
Vasily.onl
2025-06-02 12:35:19 +08:00
parent cecb5fd411
commit 02a51521a0
9 changed files with 964 additions and 374 deletions

View File

@@ -10,13 +10,14 @@
},
"data_collection": {
"store_raw_data": true,
"health_check_interval": 30.0,
"health_check_interval": 120.0,
"auto_restart": true,
"buffer_size": 1000
},
"factory": {
"use_factory_pattern": true,
"default_data_types": ["trade", "orderbook"],
"default_timeframes": ["5s", "30s", "1m", "5m", "15m", "1h"],
"batch_create": true
},
"trading_pairs": [
@@ -24,6 +25,7 @@
"symbol": "BTC-USDT",
"enabled": true,
"data_types": ["trade", "orderbook"],
"timeframes": ["5s", "1m", "5m", "15m", "1h"],
"channels": {
"trades": "trades",
"orderbook": "books5",
@@ -34,6 +36,7 @@
"symbol": "ETH-USDT",
"enabled": true,
"data_types": ["trade", "orderbook"],
"timeframes": ["5s", "1m", "5m", "15m", "1h"],
"channels": {
"trades": "trades",
"orderbook": "books5",