POST /v1/accounts/{accountId}/orders request schema, code examples for every order type, and how to modify, cancel, and retrieve fills.
Place an order — POST /v1/accounts/{accountId}/orders
Request fields
Order examples
Market order — buy by share quantity
Market order — buy by dollar amount (notional)
Limit order
Sample response
All order creation requests return201 Created with the full order object:
List orders — GET /v1/accounts/{accountId}/orders
Returns all orders for the account. Supports filtering by status and date.
Get order details — GET /v1/accounts/{accountId}/orders/{orderId}
Modify an open order — PATCH /v1/accounts/{accountId}/orders/{orderId}
You can modify the limit_price or quantity of an order that is in new or partially_filled status. Modifying results in a replace operation — the original order is cancelled and a new order is submitted with the updated parameters.
⚠️ You cannot modifysymbol,side,order_type, ortime_in_force. Cancel and replace with a new order instead.
Cancel an order — DELETE /v1/accounts/{accountId}/orders/{orderId}
Cancels an open order. The order must be in new or partially_filled status. Returns 204 No Content. Cancellations are not guaranteed — if the order fills before the cancel reaches the market, you will receive an INVALID_ORDER_STATE error and the order will appear as filled.
Get execution reports (fills) — GET /v1/accounts/{accountId}/orders/{orderId}/executions
Returns individual fill reports. Large orders may fill in multiple partial executions at different prices.
filled_avg_price on the order object.
Tracking orders and idempotency
If your order request times out, do not blindly retry without first checking whether the order was created — queryGET /v1/accounts/{accountId}/orders and search for your client_order_id. Subscribe to the order.submitted, order.partially_filled, order.filled, order.cancelled, and order.rejected webhook events rather than polling.
Order state transitions you should handle in your UI
Common order errors
Next steps
- Account Activities — View the full transaction and activity history
- Webhooks Overview — Real-time order fill notifications
- Funding Overview — Deposit cash before trading