Cancel a previously placed order. The order must belong to the profile that the API key belongs to.
If the order had no matches during its lifetime, its record may be purged. This means the order details will not be available with
To prevent a race condition when canceling an order, it is highly recommended that you specify the product id as a query string.
This endpoint requires the "trade" permission.
Orders may be canceled using either the exchange assigned
id or the client assigned
client_oid. When using
client_oid it must be preceded by the
Successfully cancelled order response will include the order ID if requested cancellation is by exchange assigned
id, or the client assigned
client_oid if cancelled by client order ID.
If the order could not be canceled (already filled or previously canceled, etc), then an error response will indicate the reason in the