Cancel order
POST{BASE_URL}/orders/cancel
Requests cancellation of an open order. The order ends as canceled
(or canceled_after_partial_fill) once the cancel is confirmed; watch
the WebSocket for the canceled or
cancel_rejected update.
Send market so order_id is looked up in the right market.
Request
Responses
- 200
- 400
- 401
- 403
- 500
- 503
Cancel request accepted.
The request could not be accepted, for example because a field is missing or invalid, the instrument is unknown or not tradable, buying power or position is insufficient, or the order is not allowed in the current session.
The Authorization header is missing, or the access token is invalid or expired.
The token is valid but not allowed to make this request: your client
does not have trading access (for a POST), or it cannot access the
account_number.
Unexpected server-side failure. For order requests, check the order's
status with Get order before retrying: retrying an order_id that was
already accepted is rejected as a duplicate.
The service is temporarily unavailable. Check the order's status before retrying.