- a stop (
stopPrice) that arms the order, and - a limit (
price) that controls the price once it’s armed.
stopPrice, the order becomes a limit order at your price — instead of a market order. This protects you from a bad fill in a fast market, at the cost of possibly not filling at all if price blows past your limit.
Stop vs. stop-limit in one line: a stop guarantees you get out/in but not at what price; a stop-limit guarantees the price but not that you fill. Choose based on whether execution-certainty or price-certainty matters more.
When to use it
- You want a stop-loss but refuse to be filled below a floor in a flash crash.
- You’re entering on a breakout but won’t chase past a certain price.
stopPrice and price is your tolerance. Too tight and you risk no fill; too wide and you give up price protection.
How it works
- You
POST /v1/orderswithtype: "STOP_LIMIT", astopPrice, and aprice. - The order waits, inactive, until the market touches
stopPrice. - It then becomes a limit order at
priceand rests on the book. - It fills only at
priceor better; otherwise it keeps working (or expires per itstimeInForce).
Request
| Field | Type | Required | Description |
|---|---|---|---|
type | string | yes | Must be "STOP_LIMIT". |
stopPrice | string | yes | The trigger price. When the market reaches it, the order activates. |
price | string | yes | The limit price the activated order will work at. Fills at this price or better only. |
side | string | yes | BUY, SELL, SELL_SHORT, or BUY_TO_COVER. |
qty | string | yes | Number of shares as a decimal string. |
Example — stop-loss with a price floor
Sell 100 AAPL: arm at 145.00, but don’t sell below 144.50.cURL
Request body
Response
Watch it trigger and fill
AfterstopPrice is touched, the order behaves like a limit order — it may fill in full, partially, or sit working at your price:
account.order — triggered, working as a limit
If the market trades straight through your
price after triggering, you may be left PARTIALLY_FILLED or completely unfilled — the limit protected you from a worse price but didn’t guarantee a fill. See the Limit order → Listen for updates handshake and the full Account Updates WebSocket reference.Next steps
Stop order
The simpler trigger-into-market variant.
Single-leg option
Move on to options orders.
Replace Order
Adjust the stop or limit on a resting order.
Order Flow
How all order types fit together.