Skip to main content

Stock Trading

The Stock Orders API supports placing, modifying, and cancelling orders for stocks and ETFs on the US market.

For the full list of supported order types and features by market, see the Feature Matrix in the Trading API Overview.

Order Lifecycle

Every order follows this lifecycle:

  1. Preview — Estimate costs and fees before committing
  2. Place — Submit the order
  3. Replace — Modify price or quantity while the order is open
  4. Cancel — Cancel a pending order

Key Parameters

ParameterRequiredDescription
account_idYesTrading account identifier
client_order_idYesUnique client-defined order ID (max 32 chars, must be unique per account)
combo_typeYesNORMAL for standard single orders
symbolYesTrading symbol (e.g., AAPL)
instrument_typeYesEQUITY for stock orders
marketYesUS
order_typeYesOrder type — see table below
sideYesBUY or SELL
quantityYesNumber of shares. Supports decimals for fractional orders (e.g., "0.5")
total_cash_amountConditionalTotal dollar amount. Required when entrust_type is AMOUNT. Amount must be less than the price of 1 share
entrust_typeYesQTY (by quantity, supports fractional decimals) or AMOUNT (by cash amount, for buying less than 1 share)
time_in_forceYesDAY or GTC
limit_priceConditionalRequired for LIMIT, STOP_LOSS_LIMIT
stop_priceConditionalRequired for STOP_LOSS, STOP_LOSS_LIMIT

Supported Order Types

Order TypeDescription
MARKETExecute immediately at the best available price
LIMITExecute at the specified price or better
STOP_LOSSTrigger a market order when the stop price is reached
STOP_LOSS_LIMITTrigger a limit order when the stop price is reached

Time in Force

ValueDescription
DAYValid for the current trading day only
GTCGood till cancelled — remains active until filled or manually cancelled

Request Examples

Buy 10 shares of AAPL at a limit price of $180, valid for the current trading day during regular hours.

{
"account_id": "<your_account_id>",
"new_orders": [
{
"client_order_id": "<unique_id>",
"combo_type": "NORMAL",
"symbol": "AAPL",
"instrument_type": "EQUITY",
"market": "US",
"order_type": "LIMIT",
"limit_price": "180.00",
"quantity": "10",
"side": "BUY",
"time_in_force": "DAY",
"support_trading_session": "CORE",
"entrust_type": "QTY"
}
]
}

What's Next