Create trade
POST /api/tool/execute
Creates a stock, crypto, or futures trade for review. This operation is distinct from create_options_trade and does not accept an options legs array.
OAuth scopes: trade:write, tool:execute
Plan: Trade It Pro
Returns: Trade
Trading sessions
Set trading_session to choose when the order can execute and time_in_force to choose how long it stays open. For example, a whole-share limit order with "trading_session": "extended" and "time_in_force": "day" can execute through the brokerage's after-hours cutoff. See Supported Brokerages for session coverage and duration rules.
Dollar-sized limits in extended equity sessions convert to shares at the limit price and round down to the supported share precision.
Futures orders
For outright futures, use a slash-prefixed product root such as /MES for the active month, or a dated symbol such as /MESZ26 for December 2026. Set unit: "contracts" and a whole positive amount, and select a futures-enabled account_id from Get accounts. See brokerage coverage for availability and the asset API for delivery months.
Futures have a separate Always Confirm Futures setting. Keep it enabled for a draft-first workflow and inspect the returned order status; creation can submit immediately when futures auto-execution is enabled.
Request body
tool_name*stringSelects this API operation.
create_tradeParameters for this operation.
symbol*stringTicker symbol of the asset to trade, e.g. TSLA. Futures start with a slash: /ES for the active month or /ESZ26 for a specific contract.
amount*numberHow much to trade: a dollar value when unit is dollars, a share count when unit is shares, or a whole number of futures contracts when unit is contracts.
unit*stringWhether amount is in dollars, shares, or (futures only) contracts.
dollarssharescontractsbuy_or_sell*stringWhether to buy or sell the asset.
buysellOptional context displayed with the draft trade.
image_urlstringLink to the screenshot or chart the user shared as the source of this trade idea, shown alongside the draft.
order_typestringHow the order is priced. Omit for a market order.
marketlimitstopstop_limitlimit_pricenumberMaximum price per share to pay on a buy, or minimum to accept on a sell, in the asset currency. Set for limit and stop_limit orders.
stop_pricenumberPrice per share, in the asset currency, that triggers the order. Set for stop and stop_limit orders.
Take-profit exit for Buy entries or OCO Sell orders. Not supported by all brokerages.
value*numberExit trigger level
unitstringAbsolute price ($) or percent from entry price (%).
$%Stop-loss exit for Buy entries or OCO Sell orders. Not supported by all brokerages.
value*numberExit trigger level
unitstringAbsolute price ($) or percent from entry price (%).
$%time_in_forcestringHow long the order stays open. Day expires at the applicable session cutoff, and gtc stays open until filled, canceled, or expired by the brokerage.
daygtciocfoktrading_sessionstring | nullWhen execution is eligible. Omit for the brokerage default. Premarket, after_hours and overnight are session-only. Extended adds premarket and after-hours to regular equity hours. 24_5 includes overnight, and 24_7 is for crypto. Check brokerage_metadata.trading_sessions for coverage.
regularpremarketafter_hoursextendedovernight24_524_7account_idnumber | stringID of the brokerage account to trade in, from get_accounts. Omit to use the user's default account.
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": "create_trade",
"params": {
"symbol": "TSLA",
"amount": 1000,
"unit": "dollars",
"buy_or_sell": "buy",
"order_type": "limit",
"limit_price": 250,
"time_in_force": "day",
"account_id": 304
}
}'Example response
200 OK
{
"id": 842,
"created_at": "2026-03-17T14:14:31.112Z",
"updated_at": "2026-03-17T14:14:31.112Z",
"user_id": 1,
"asset_id": 88,
"account_id": 304,
"parent_id": null,
"source": null,
"image_url": null,
"external_id": "draft-842",
"type": 0,
"action": "buy",
"direction": null,
"total_units": 4,
"filled_units": 0,
"canceled_units": 0,
"notional_amount": { "amount": 1000, "currency": "USD" },
"execution_price": { "amount": 250, "currency": "USD" },
"status": "draft",
"order_type": "limit",
"limit_price": { "amount": 250, "currency": "USD" },
"stop_price": null,
"take_profit": null,
"stop_loss": null,
"time_in_force": "day",
"placed_at": null,
"executed_at": null,
"error_message": null,
"fee": null,
"legs": null,
"event": null,
"analysis": null
}We recommend showing the returned order for user approval before passing id to execute_trade.
Note
If automatic execution is enabled for the account, the returned status may already be placed instead of draft.