Cancel Order

Rate Limit: 1200 requests per 60 seconds

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Rate Limit: 1200 requests per 60 seconds

Cancel an open order. This endpoint is asynchronous — a successful response means the cancel request was accepted, not that the order has been cancelled. Monitor the final result via WebSocket (Orders channel) or by polling Query Order.

Request body: Request parameters must be sent as a JSON body, not as query string parameters.

Request

NameTypeMandatoryDescription
orderIdStringNOrder ID
clientOrderIdStringNCustomer-defined order ID

Either orderId or clientOrderId must be sent. If both orderId and clientOrderId are provided, orderId takes precedence. Note that you can only cancel orders in the NEW/OPEN/PARTIALLY_FILLED status, otherwise even if the api request is successful, it does not mean that the order has been cancelled.

Response

Field nameTypeRemarks
orderIdStringOrder ID
clientOrderIdStringCustomer-defined order ID
orderStateStringOrder State
actionStringCANCEL_PENDING CANCEL_COMPLETE CANCEL_FAILED
actionMsgStringactionMsg

Example Request

{
  "orderId": "2106591138643265"
}

Example Response

{
  "code": 200000,
  "message": "Success",
  "data": {
    "orderId": "1234567890123456",
    "clientOrderId": "my-order-001",
    "orderState": "OPEN",
    "action": "CANCEL_PENDING",
    "actionMsg": ""
  }
}
Body Params
string

Order ID

string

Customer-defined order ID

Response

Language
LoadingLoading…
Response
Choose an example:
application/json