Runs
API endpoints for run management.
Provides endpoints for listing, deleting, and querying runs and their round-trips.
router = APIRouter(prefix='/api', tags=['runs'])
module-attribute
DeleteRunsRequest
Bases: BaseModel
Request model for deleting runs.
Attributes:
| Name | Type | Description |
|---|---|---|
run_ids |
list[str]
|
List of run IDs to delete. |
Source code in src/onesecondtrader/dashboard/routers/runs.py
api_runs()
async
api_delete_runs(request)
async
Delete specified runs and their associated data.
Source code in src/onesecondtrader/dashboard/routers/runs.py
api_run_roundtrips(run_id)
async
Return computed round-trip trades for a run.
api_run_chart_image(run_id, symbol, start_ns, end_ns, direction, pnl)
async
Return a PNG chart image for a round-trip trade.
Source code in src/onesecondtrader/dashboard/routers/runs.py
api_trade_journey_chart(run_id, symbol=None)
async
Return a Trade Journey chart image for round-trip trades in a run, optionally filtered by symbol.
Source code in src/onesecondtrader/dashboard/routers/runs.py
api_pnl_summary_chart(run_id, symbol=None)
async
Return a PnL Summary chart image for round-trip trades in a run, optionally filtered by symbol.