Create options trade
POST /api/tool/execute
Creates a single-leg or multi-leg options order for review, on stocks, indexes, or futures. This is a separate operation from create_trade.
OAuth scopes: trade:write, tool:execute
Plan: Trade It Pro
Returns: Trade
Eligible TradeStation limit orders with option legs can request "trading_session": "extended". Coverage and duration rules are listed under Supported Brokerages.
Request body
tool_name*stringSelects this API operation.
create_options_tradeParameters for this operation.
symbol*stringTicker symbol of the underlying asset, e.g. SPX or TSLA, or a futures root such as /ES for futures options
Array of trade legs. At least one leg is required.
type*stringWhether the leg trades an option contract, shares of the underlying, or an option on a futures contract.
optionequityfuture_optionaction*stringWhether the leg buys or sells.
buysellposition_effectstring | nullWhether an option leg opens a new position or closes an existing one. Use null for equity legs.
opencloseocc*string | nullOption contract in OCC format without the root symbol: YYMMDD, C or P, then the strike x1000 zero-padded to 8 digits, e.g. "240119C00195000" for the Jan 19, 2024 $195 call. Use null for equity and futures-option legs.
symbolstringExact futures option contract symbol for future_option legs, e.g. "./ESZ26 EW3X26 261120C6000". Omit for other legs.
quantity*numberNumber of contracts for options or shares for equity
directionstringNet cash flow of a multi-leg spread: debit when paying, credit when receiving, even for zero-net. Set for multi-leg spreads only.
debitcreditevenlimit_pricenumberNet price per spread unit for limit and stop_limit orders, in the asset currency. Use 0 with direction even for a zero-net spread.
order_typestringHow the order is priced. Omit for a market order.
marketlimitstopstop_limitstop_pricenumberPrice per share, in the asset currency, that triggers the order. Set for stop and stop_limit orders.
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.
Leg fields
Expand params → legs in the request schema to inspect each leg’s fields, types, and allowed values.
OCC symbols
OCC identifiers use YYMMDD[C|P]STRIKE, with the strike multiplied by 1,000 and zero-padded to eight digits. For example, 260620P00580000 is a $580 put expiring June 20, 2026.
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_options_trade",
"params": {
"symbol": "SPY",
"legs": [
{
"type": "option",
"action": "buy",
"position_effect": "open",
"occ": "260620P00580000",
"quantity": 1
},
{
"type": "option",
"action": "sell",
"position_effect": "open",
"occ": "260620P00570000",
"quantity": 1
}
],
"direction": "debit",
"order_type": "limit",
"limit_price": 2.35,
"time_in_force": "day",
"account_id": 304
}
}'Futures options
Options on futures use the same operation on a futures root such as /ES, through an account at a brokerage that trades them (see brokerages). Each leg has "type": "future_option", "occ": null, and the exact symbol returned by the asset API, such as ./ESH27 ESH27 270319P6000. Prices are in futures points: a 12.25 limit on /ES is 12.25 × 50 = $612.50 per spread. Spreads need a limit order, futures option legs cannot be mixed with other leg types, and auto-execution follows the Always Confirm Futures setting.
{
"tool_name": "create_options_trade",
"params": {
"symbol": "/ES",
"legs": [
{ "type": "future_option", "action": "sell", "position_effect": "open", "occ": null, "symbol": "./ESH27 ESH27 270319P6000", "quantity": 1 },
{ "type": "future_option", "action": "buy", "position_effect": "open", "occ": null, "symbol": "./ESH27 ESH27 270319P5950", "quantity": 1 }
],
"direction": "credit",
"order_type": "limit",
"limit_price": 12.25,
"account_id": 304
}
}The draft's contract names the futures month every leg exercises into, such as H27, and is null when legs exercise into different months.
Example response
200 OK
{
"id": 843,
"created_at": "2026-03-17T14:19:07.444Z",
"updated_at": "2026-03-17T14:19:07.444Z",
"user_id": 1,
"asset_id": 23,
"account_id": 304,
"source": null,
"image_url": null,
"external_id": "draft-843",
"type": 1,
"action": "buy",
"direction": "debit",
"total_units": 1,
"filled_units": 0,
"canceled_units": 0,
"notional_amount": null,
"execution_price": null,
"status": "draft",
"order_type": "limit",
"limit_price": { "amount": 2.35, "currency": "USD" },
"stop_price": null,
"time_in_force": "day",
"placed_at": null,
"executed_at": null,
"error_message": null,
"fee": null,
"legs": [
{
"occ": "260620P00580000",
"type": "option",
"action": "buy",
"quantity": 1,
"execution_price": null,
"position_effect": "open"
},
{
"occ": "260620P00570000",
"type": "option",
"action": "sell",
"quantity": 1,
"execution_price": null,
"position_effect": "open"
}
],
"event": null,
"analysis": null
}We recommend showing every returned leg and the net direction and price for user approval before calling execute_trade.
Reading prices on a multi-leg trade
Note
Every price on a trade is unsigned, including execution_price. A credit spread and a debit spread of the same size store the same number. direction tells them apart, and total_cost is the signed figure to display.
| Field | Unit | Notes |
|---|---|---|
legs[].execution_price | Per share | Multiply by 100 for the per-contract cost. |
legs[].quantity | Contracts | The absolute count on that leg. |
limit_price | Per contract/spread unit | A 1.00 limit on a spread is a $100 package. |
execution_price | Net cash for the whole package | Unsigned. |
total_units | 1 | A multi-leg order counts as a single package. |
filled_units | Fraction of the package | Same as total_units when fully filled. |
direction | debit, credit, even | Which way the cash moved. |