fix(backtest): benchmark全链路透传(API→runner→engine) + metrics分支用_dcfg修cfg=None导致relative_metrics空

This commit is contained in:
2026-07-11 14:27:19 +08:00
parent 5e5a6cf84a
commit f7c2e2eea3
3 changed files with 17 additions and 11 deletions
+2 -1
View File
@@ -75,7 +75,8 @@ async def submit_cta(req: CtaBacktestRequest):
params=req.params,
start=req.start,
end=req.end,
cfg=None
cfg=None,
benchmark=req.benchmark
)
return {"task_id": tid}