Skip to main content

Options Trading

The Options API supports US options trading through the same unified order endpoints. Options are differentiated by setting instrument_type: OPTION and providing option-specific parameters including the legs array with strike price, expiration, and option type.

Supported: single-leg options, multi-leg options, and leg-in / leg-out on existing positions. Both equity / ETF options and index options are supported.

For stock trading, see the dedicated Stock Trading page.

Supported Order Types​

Order TypeSingle-LegMulti-LegDescription
MARKET✓✓Execute at the current market price
LIMIT✓✓Execute at the specified price. For multi-leg orders, the price is the net price of the strategy
STOP_LOSS✓—Trigger a market order when the stop price is reached
STOP_LOSS_LIMIT✓—Trigger a limit order when the stop price is reached

Time in Force​

ValueDescription
DAYValid for the current trading day only
GTCGood till cancelled. For multi-leg orders, GTC is only available when every leg is an option leg. Multi-leg orders that include a stock leg only support DAY

Trading Session​

ValueDescription
CORECore trading session only

Multi-Leg Orders​

  • A multi-leg order contains 2 to 4 legs on the same underlying.
  • The order is executed according to the composition of legs. option_strategy is not validated.
  • side is the direction of the whole order. When a stock leg is included, side follows the direction of the stock leg.
  • position_intent indicates opening or closing. A BUY_TO_OPEN position is closed with SELL_TO_CLOSE, and a SELL_TO_OPEN position is closed with BUY_TO_CLOSE.
  • The quantity of a stock leg equals the number of contracts × the contract deliverable (100 for standard options).
  • The leg combinations available to an account depend on its option level.
  • Whether a combination that requires Level 4 can be traded on a given underlying is also subject to the instrument data.
  • An existing stock position and a short call on the same underlying are combined automatically. Other existing positions are combined only through a leg-in order.

Key Parameters​

Order-Level Parameters (new_orders[])​

ParameterRequiredDescription
client_order_idYesUnique client-defined order ID (max 32 chars, must be unique per account)
combo_typeYesNORMAL for standard orders
option_strategyNoReference only and not validated. The order is executed according to the composition of legs
instrument_typeYesOPTION
marketYesUS
symbolYesUnderlying symbol (e.g., AAPL)
order_typeYesMARKET, LIMIT, STOP_LOSS, or STOP_LOSS_LIMIT
sideYesBUY or SELL. For multi-leg orders, this is the direction of the whole order
quantityYesNumber of strategy units (contracts for single-leg orders)
entrust_typeYesQTY (only quantity-based orders are supported)
time_in_forceYesDAY or GTC
support_trading_sessionNoCORE (default)
limit_priceConditionalRequired for LIMIT and STOP_LOSS_LIMIT. For multi-leg orders, this is the net debit or net credit of the strategy
stop_priceConditionalRequired for STOP_LOSS and STOP_LOSS_LIMIT
position_intentNoBUY_TO_OPEN, SELL_TO_CLOSE, SELL_TO_OPEN, or BUY_TO_CLOSE. Applies to both single-leg and multi-leg orders
leg_in_or_outNoLEG_IN to add legs to an existing position, LEG_OUT to close one leg of an existing multi-leg position. See Leg In and Leg Out
position_idConditionalID of the target position, from Account Positions. Required when leg_in_or_out is set
legsYesArray of leg definitions. 1 leg for SINGLE, 2 to 4 legs for multi-leg strategies

Leg Parameters (legs[])​

ParameterRequiredDescription
instrument_typeYesOPTION for option legs, EQUITY for the stock leg of a strategy
marketYesUS
symbolYesUnderlying symbol (e.g., AAPL)
sideYesBUY or SELL
strike_priceOption legsStrike price of the option
option_expire_dateOption legsExpiration date in YYYY-MM-DD format
option_typeOption legsCALL or PUT
quantityYesNumber of contracts for an option leg, or number of shares for a stock leg. Leg quantities must keep the ratio of the strategy (for example 1 / 2 / 1 for a butterfly)

Leg In and Leg Out​

Leg In adds legs to an existing position to form a multi-leg strategy, for example selling a higher-strike call against an existing long call to form a vertical spread.

  1. Account Positions returns the position_id of the existing position.
  2. A leg-in order sets leg_in_or_out: LEG_IN and the position_id, and contains only the new leg(s) in legs.

Leg Out closes one leg of an existing multi-leg position and keeps the remaining legs.

  1. Account Positions returns the position_id of the multi-leg position.
  2. A leg-out order sets leg_in_or_out: LEG_OUT and the position_id of the strategy position, and contains the leg to close in legs.

Preview Order supports the same leg_in_or_out and position_id fields for estimating the cost of a leg-in or leg-out order.

Replacing and Cancelling Multi-Leg Orders​

RuleDescription
legs is requiredWhen replacing a multi-leg order, modify_orders[].legs must include every leg of the order, each with its id (from Order Detail) and new quantity. Single-leg orders are not affected
Net pricelimit_price is the net price of the strategy, the same as when placing the order
Structure cannot changeAdding or removing legs, or changing a strike, expiration, or side, requires cancelling the order and placing a new one
CancelCancel by client_order_id. The whole multi-leg order is cancelled

Orders and Positions​

Request Examples — Single-Leg​

Buy 1 AAPL call option at a limit price of $11.00, strike price $220, expiring 2026-06-19.

{
"account_id": "<your_account_id>",
"new_orders": [
{
"client_order_id": "<unique_id>",
"combo_type": "NORMAL",
"option_strategy": "SINGLE",
"instrument_type": "OPTION",
"market": "US",
"symbol": "AAPL",
"order_type": "LIMIT",
"limit_price": "11.0",
"side": "BUY",
"quantity": "1",
"entrust_type": "QTY",
"time_in_force": "DAY",
"legs": [
{
"instrument_type": "OPTION",
"market": "US",
"symbol": "AAPL",
"side": "BUY",
"strike_price": "220.0",
"option_expire_date": "2026-06-19",
"option_type": "CALL",
"quantity": "1"
}
]
}
]
}

Request Examples — Multi-Leg​

Open 1 AAPL bull call spread at a net debit of $2.50: buy the $220 call and sell the $230 call, both expiring 2026-12-18.

{
"account_id": "<your_account_id>",
"new_orders": [
{
"client_order_id": "<unique_id>",
"combo_type": "NORMAL",
"order_type": "LIMIT",
"limit_price": "2.50",
"quantity": "1",
"option_strategy": "VERTICAL",
"position_intent": "BUY_TO_OPEN",
"side": "BUY",
"time_in_force": "DAY",
"entrust_type": "QTY",
"instrument_type": "OPTION",
"market": "US",
"symbol": "AAPL",
"legs": [
{
"side": "BUY",
"quantity": "1",
"symbol": "AAPL",
"strike_price": "220.00",
"option_expire_date": "2026-12-18",
"instrument_type": "OPTION",
"option_type": "CALL",
"market": "US"
},
{
"side": "SELL",
"quantity": "1",
"symbol": "AAPL",
"strike_price": "230.00",
"option_expire_date": "2026-12-18",
"instrument_type": "OPTION",
"option_type": "CALL",
"market": "US"
}
]
}
]
}

What's Next​

  • Stock Trading — Stock and ETF order management
  • Accounts — Query balances and positions, including multi-leg option positions
  • Trading API FAQ — Common questions and troubleshooting