Request
string
required
Unique request identifier for correlation
string
required
WebSocket API method. Must be
order.cancelobject
required
Request parameters containing authentication and order cancellation details
You must provide either
id or external_id in the params, but not both. The order must be active (open or partially executed) to be canceled.Response
string
Request identifier for correlation
integer
HTTP status code (200 for success)
object
Canceled order details object
Error Response
string
Request identifier for correlation
integer
HTTP error status code
null
Always null for error responses
object
Error details object
Examples
Success Response Example
Error Response Examples
Order Not Found
Order Already Canceled or Fully Executed
Usage Notes
- Order ID vs External ID: Provide either the internal order ID returned from order creation or the external ID you assigned when creating the order. Do not provide both.
- Order Status: Only active orders (status
openorexecuted_partially) can be canceled. - Already Canceled Orders: Attempting to cancel an already canceled or fully executed order will result in an error.
- Execution Guarantee: If part of the order was already executed before cancellation, you will receive the executed amount in the response.
- Request Correlation: Always use a unique
idin each request for proper correlation with responses.