Backtest
API endpoints for backtest execution and status.
Provides endpoints for starting backtests and querying their status.
router = APIRouter(prefix='/api/backtest', tags=['backtest'])
module-attribute
api_backtest_run(request, background_tasks)
async
Start a backtest in the background and return the run ID.
Source code in src/onesecondtrader/dashboard/routers/backtest.py
api_backtest_status(run_id)
async
Return the current status of a backtest job.