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