2025-05-31 21:58:47 +08:00
|
|
|
"""
|
|
|
|
|
Common data processing utilities for all exchanges.
|
|
|
|
|
|
|
|
|
|
This package contains shared components for data validation, transformation,
|
|
|
|
|
and aggregation that can be used across different exchange implementations.
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
from .data_types import (
|
|
|
|
|
StandardizedTrade,
|
|
|
|
|
OHLCVCandle,
|
|
|
|
|
MarketDataPoint,
|
|
|
|
|
DataValidationResult
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
from .aggregation import (
|
|
|
|
|
TimeframeBucket,
|
|
|
|
|
RealTimeCandleProcessor,
|
|
|
|
|
CandleProcessingConfig
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
from .transformation import (
|
|
|
|
|
BaseDataTransformer,
|
|
|
|
|
UnifiedDataTransformer,
|
|
|
|
|
create_standardized_trade
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
from .validation import (
|
|
|
|
|
BaseDataValidator,
|
|
|
|
|
ValidationResult
|
|
|
|
|
)
|
|
|
|
|
|
2025-06-02 13:42:00 +08:00
|
|
|
from .indicators import (
|
|
|
|
|
TechnicalIndicators,
|
|
|
|
|
IndicatorResult,
|
|
|
|
|
create_default_indicators_config,
|
|
|
|
|
validate_indicator_config
|
|
|
|
|
)
|
|
|
|
|
|
2025-05-31 21:58:47 +08:00
|
|
|
__all__ = [
|
|
|
|
|
# Data types
|
|
|
|
|
'StandardizedTrade',
|
|
|
|
|
'OHLCVCandle',
|
|
|
|
|
'MarketDataPoint',
|
|
|
|
|
'DataValidationResult',
|
|
|
|
|
|
|
|
|
|
# Aggregation
|
|
|
|
|
'TimeframeBucket',
|
|
|
|
|
'RealTimeCandleProcessor',
|
|
|
|
|
'CandleProcessingConfig',
|
|
|
|
|
|
|
|
|
|
# Transformation
|
|
|
|
|
'BaseDataTransformer',
|
|
|
|
|
'UnifiedDataTransformer',
|
|
|
|
|
'create_standardized_trade',
|
|
|
|
|
|
|
|
|
|
# Validation
|
|
|
|
|
'BaseDataValidator',
|
2025-06-02 13:42:00 +08:00
|
|
|
'ValidationResult',
|
|
|
|
|
|
|
|
|
|
# Technical Indicators
|
|
|
|
|
'TechnicalIndicators',
|
|
|
|
|
'IndicatorResult',
|
|
|
|
|
'create_default_indicators_config',
|
|
|
|
|
'validate_indicator_config'
|
2025-05-31 21:58:47 +08:00
|
|
|
]
|