Files
etf/archive/framework/__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

60 lines
1.1 KiB
Python
Raw Permalink 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.

"""
框架统一入口(通用)
只导出抽象接口具体实现在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',
]