Execute trade
POST /api/tool/execute
Submits a previously created trade draft to the selected brokerage.
OAuth scopes: trade:write, tool:execute
Plan: Trade It Pro
Returns: Trade
A 200 OK response contains the resulting trade. If submission fails during execution, the trade has status: "failed", an error_code, and an error_message when available. A request that fails a preflight check, such as authorization or an expired brokerage connection, can return an HTTP error instead.
See Trade failure codes for how to handle each code before resubmitting an order.
Request body
tool_name*stringSelects this API operation.
execute_tradeParameters for this operation.
trade_id*number | stringID of the draft trade to execute, as returned by create_trade or create_options_trade.
Example request
curl https://api.tradeit.app/api/tool/execute \
--request POST \
--header "Authorization: Bearer $TRADE_IT_ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"tool_name": "execute_trade",
"params": {
"trade_id": 842
}
}'Example response
200 OK
{
"id": 842,
"created_at": "2026-03-17T14:14:31.112Z",
"updated_at": "2026-03-17T14:21:54.937Z",
"user_id": 1,
"asset_id": 88,
"account_id": 304,
"source": null,
"image_url": null,
"external_id": "114",
"type": 0,
"action": "buy",
"direction": null,
"total_units": 4,
"filled_units": 0,
"canceled_units": 0,
"notional_amount": { "amount": 1000, "currency": "USD" },
"execution_price": null,
"status": "placed",
"order_type": "limit",
"limit_price": { "amount": 250, "currency": "USD" },
"stop_price": null,
"time_in_force": "day",
"placed_at": "2026-03-17T14:21:54.937Z",
"executed_at": null,
"error_message": null,
"fee": null,
"legs": null,
"event": null,
"analysis": null
}Inspect status, filled_units, and executed_at to track acceptance and fills. Use Get trades or trade update webhooks for subsequent updates.
Rejected order
A failed trade can include fields like these.
{
"id": 842,
"status": "failed",
"filled_units": 0,
"error_code": "insufficient_buying_power",
"error_message": "You do not have enough overnight buying power to place this order."
}