feat: auto-queue orderbook retrain at coverage gate
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
"""Crypto spot trading bot package."""
|
||||
|
||||
__version__ = "1.1.0"
|
||||
__version__ = "1.1.1"
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user