KB / api
POST /api/v1/trading/trades/{trade_id}/confirm
Last verified
Auto-generated. This article is rebuilt from FastAPI route introspection by
scripts/build_api_kb.py. Edit the route docstring inapp/and re-run the script — do not edit this file directly.
POST /api/v1/trading/trades/{trade_id}/confirm
Handler: app.trading.routes.confirm_trade
Methods: POST
Description
Confirm a pending trade (stock or option). Must be within 60s window and market must be open.
Wrapped in BEGIN IMMEDIATE so two concurrent confirms on the same
trade_id serialize on the SQLite write lock; the UPDATE…WHERE
status=‘pending’ atomically claims the trade so only one caller wins.
Parameters
| In | Name | Type | Default | Description |
|---|---|---|---|---|
| path | trade_id | str | PydanticUndefined |
Curl
curl -s https://bigclawd.com/api/v1/trading/trades/{trade_id}/confirm