Files
etf/archive/framework_v2/config/__init__.py
aszerW c905230a40 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/
2026-06-03 23:41:46 +08:00

73 lines
1.4 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"""
配置模块
提供配置加载、验证、管理功能
"""
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',
]