feat: 选基 live 走 aurora 适配器、废弃旧基类/旧回测引擎(P3 迁移收尾 + 引擎审计) - #57
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更说明
P3 迁移收尾:把所有 selection live 端点统一到 AuroraCore 适配器,废弃旧
FundStrategyBase/旧注册表/旧回测引擎,并完成 fund 域"统一引擎"审计。变更类型
refactor)fix)docs/chore)主要改动
/selection/screenlive 路径:rating_enhanced/ 兜底 / index 分支由直接newlegacy 策略类,改为统一走 aurora 适配器(AuroraMultiFactorSelection/AuroraIndexSelection/AuroraRatingEnhancedSelection),applicable_fund_types校验改取selection_cls()。fund_quant/backtest/engine.py文件头注明已废弃(回测全走统一引擎,仅供旧测试引用);生产代码已无FundBacktester/ 旧FundStrategyBase直接实例化。core.BacktestEngine;两个例外(vectorized_engine.py工具端点、gold 域库)在 README §1.4 标注。run_fundquant_aurora_oos.py纳入 3 个选基 aurora 策略。验证
python -m pytest tests/fund_quant/ -q→ 551 passed风险与回滚
/selection/screen、/selection/score响应结构不变(仍走 legacy scorer 的screen(),只是实例入口换为 aurora 适配器);/backtest/*无行为变化。screen()原样保留,输出一致。接口示例(selection/screen,供行为比对)
请求
{strategy: "multi_factor", fund_type: "stock"}仍返回多因子评分 rankings(与迁移前同构)。