feat: auto-queue orderbook retrain at coverage gate

This commit is contained in:
Курнат Андрей
2026-07-15 09:50:57 +03:00
parent 0992da0ece
commit 5082be2e5a
5 changed files with 55 additions and 1 deletions
+1 -1
View File
@@ -1,3 +1,3 @@
"""Crypto spot trading bot package."""
__version__ = "1.1.0"
__version__ = "1.1.1"
+11
View File
@@ -223,6 +223,17 @@ def create_app(settings: Settings | None = None) -> FastAPI:
) -> dict[str, Any]:
return training.request_retrain(payload)
@app.post("/api/training/retrain/auto")
async def training_retrain_auto(
_: None = Depends(authorizer.require_training),
) -> dict[str, Any]:
return training.request_retrain(
{
"source": "windows-agent-auto",
"parameters": {"use_orderbook": True},
}
)
@app.post("/api/training/heartbeat")
async def training_heartbeat(
payload: dict[str, Any] | None = None,