- Introduced `BaseDataCollector` and `CollectorManager` classes for standardized data collection and centralized management. - Added health monitoring features, including auto-restart capabilities and detailed status reporting for collectors. - Updated `env.template` to include new logging and health check configurations. - Enhanced documentation in `docs/data_collectors.md` to provide comprehensive guidance on the new data collection system. - Added unit tests for `BaseDataCollector` and `CollectorManager` to ensure reliability and functionality.
25 lines
710 B
Python
25 lines
710 B
Python
"""
|
|
Data collection and processing package for the Crypto Trading Bot Platform.
|
|
|
|
This package contains modules for collecting market data from various exchanges,
|
|
processing and validating the data, and storing it in the database.
|
|
"""
|
|
|
|
from .base_collector import (
|
|
BaseDataCollector, DataCollectorError, DataValidationError,
|
|
DataType, CollectorStatus, MarketDataPoint, OHLCVData
|
|
)
|
|
from .collector_manager import CollectorManager, ManagerStatus, CollectorConfig
|
|
|
|
__all__ = [
|
|
'BaseDataCollector',
|
|
'DataCollectorError',
|
|
'DataValidationError',
|
|
'DataType',
|
|
'CollectorStatus',
|
|
'MarketDataPoint',
|
|
'OHLCVData',
|
|
'CollectorManager',
|
|
'ManagerStatus',
|
|
'CollectorConfig'
|
|
] |