Skip to main content

Cancel Order

POST

{BASE_URL}/orders/cancel

Requests cancellation of a working order. The request is asynchronous: 200 means the cancel was accepted, and the outcome arrives on the WebSocket as canceled (the order is done) or cancel_rejected (the order keeps working).

Fails with DisallowedOrderAction_Error if the order is already in a terminal state, has time_in_force=ioc, or is suspended, and with DataRetrieval_Error: original order not found if order_id is unknown for the account. POST /orders/cancel/ipo behaves identically.

Request​

Responses​

Cancel accepted.