rebuild(screener): add controlled formulas and rolling backtests

This commit is contained in:
leefer
2026-07-30 10:45:40 +08:00
parent 08f69b0641
commit b79b4ba280
21 changed files with 616 additions and 37 deletions
@@ -38,6 +38,15 @@ class CustomStrategyInput(BaseModel):
formula: dict[str, Any]
class FormulaCompileInput(BaseModel):
description: str = Field(min_length=5, max_length=500)
class FormulaCompileResponse(BaseModel):
formula: dict[str, Any]
prompt_version: str
class TrackInput(BaseModel):
run_id: int = Field(gt=0)
identifier: str = Field(min_length=1, max_length=40)