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