Archive legacy framework and utility modules that are no longer referenced by the active core (datasource/ and rotation/): - framework/ -> archive/framework/ - framework_v2/ -> archive/framework_v2/ - strategies/ -> archive/strategies/ - config/ -> archive/config/ - visualization/ -> archive/visualization/ - scripts/ -> archive/scripts/ - tests/ -> archive/tests/ - run_rotation.py, run_us_rotation.py -> archive/single_files/ - compare_*.py, test_api_dates.py -> archive/single_files/
73 lines
1.4 KiB
Python
73 lines
1.4 KiB
Python
"""
|
||
配置模块
|
||
|
||
提供配置加载、验证、管理功能
|
||
"""
|
||
|
||
from framework_v2.config.schemas import (
|
||
# 完整配置
|
||
RotationStrategyConfig,
|
||
StrategyConfig, # 通用配置
|
||
|
||
# 子配置
|
||
AssetPool,
|
||
AssetConfig,
|
||
PremiumConfig,
|
||
GroupConfig,
|
||
FactorConfig,
|
||
RotationConfig,
|
||
ThresholdConfig,
|
||
DynamicThresholdConfig,
|
||
RebalanceConfig,
|
||
PremiumControlConfig,
|
||
DataConfig,
|
||
DataSourceConfig,
|
||
BenchmarkConfig,
|
||
BacktestConfig,
|
||
MetadataConfig,
|
||
|
||
# 枚举(已移除 MarketType,改用字符串 group)
|
||
FactorType,
|
||
PremiumMode,
|
||
ThresholdMode,
|
||
DataSourceType,
|
||
)
|
||
|
||
from framework_v2.config.loader import (
|
||
ConfigLoader,
|
||
get_config_loader,
|
||
load_config,
|
||
)
|
||
|
||
__all__ = [
|
||
# 配置 Schema
|
||
'RotationStrategyConfig',
|
||
'StrategyConfig',
|
||
'AssetPool',
|
||
'AssetConfig',
|
||
'PremiumConfig',
|
||
'GroupConfig',
|
||
'FactorConfig',
|
||
'RotationConfig',
|
||
'ThresholdConfig',
|
||
'DynamicThresholdConfig',
|
||
'RebalanceConfig',
|
||
'PremiumControlConfig',
|
||
'DataConfig',
|
||
'DataSourceConfig',
|
||
'BenchmarkConfig',
|
||
'BacktestConfig',
|
||
'MetadataConfig',
|
||
|
||
# 枚举(已移除 MarketType,改用字符串 group)
|
||
'FactorType',
|
||
'PremiumMode',
|
||
'ThresholdMode',
|
||
'DataSourceType',
|
||
|
||
# 加载器
|
||
'ConfigLoader',
|
||
'get_config_loader',
|
||
'load_config',
|
||
]
|