refactor(archive): move unused modules to archive/
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/
This commit is contained in:
72
archive/framework_v2/config/__init__.py
Normal file
72
archive/framework_v2/config/__init__.py
Normal file
@@ -0,0 +1,72 @@
|
||||
"""
|
||||
配置模块
|
||||
|
||||
提供配置加载、验证、管理功能
|
||||
"""
|
||||
|
||||
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',
|
||||
]
|
||||
Reference in New Issue
Block a user