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:
2026-06-03 23:41:46 +08:00
parent d700bc1dfd
commit c905230a40
98 changed files with 0 additions and 714 deletions

View File

@@ -0,0 +1,60 @@
"""
框架统一入口(通用)
只导出抽象接口具体实现在strategies/shared/
"""
# 因子层抽象
from framework.factors import FactorBase, FactorRegistry, FactorCombiner
# 信号层抽象
from framework.signals import SignalGenerator
# 风控层抽象
from framework.risk import Position, RiskControl, CallbackHook
# 策略层抽象
from framework.strategy import StrategyBase
# 执行层抽象
from framework.execution import Portfolio, Executor, BacktestExecutor, DryRunExecutor
# 配置层
from framework.config import ConfigLoader, StrategyConfig
# 数据层抽象
from framework.data import OHLCVData, DataSource, DataCache
__all__ = [
# 因子层
'FactorBase',
'FactorRegistry',
'FactorCombiner',
# 信号层
'SignalGenerator',
# 风控层
'Position',
'RiskControl',
'CallbackHook',
# 策略层
'StrategyBase',
# 执行层
'Portfolio',
'Executor',
'BacktestExecutor',
'DryRunExecutor',
# 配置层
'ConfigLoader',
'StrategyConfig',
# 数据层
'OHLCVData',
'DataSource',
'DataCache',
]