add LIVE mode restr on test prods

This commit is contained in:
David Brazda
2023-11-15 11:04:16 +01:00
parent dc4c10a4a3
commit abc9e6148b
6 changed files with 65 additions and 3 deletions

View File

@ -363,8 +363,8 @@ def run_batch_stratin(id: UUID, runReq: RunRequest):
if runReq.test_batch_id is None and (runReq.bt_from is None or runReq.bt_from.date() == runReq.bt_to.date()):
return (-1, "test interval or different days required for batch run")
if runReq.mode != Mode.BT:
return (-1, "batch run only for backtest")
if runReq.mode not in (Mode.BT, Mode.PREP):
return (-1, "batch run only for backtest/prep")
#print("request values:", runReq)