Skip to content
API reference /Account & trading

Cancel multiple orders

Cancel the two order IDs returned by the batch-placement example.

Endpoint & access

POST
/api/v1/spot/batch_cancel_order

Whitelist Required

Request whitelist approval for your API key. This endpoint is available only after approval.

Rate limit

  • 1 request / 1 second

JSON body

Content-Type: application/json

Field Data type Required Meaning
orderIds array of strings YES JSON array of order ID strings inside the request object.

Returned fields

Field Data type Meaning
order_id string cancelled order ID

Example input

JSON request body:

{
  "orderIds": ["7402100000000061001", "7402100000000061002"]
}

Example result

{
  "code": 200,
  "data": [
    {
      "order_id": "7402100000000061001",
      "code": "200",
      "message": ""
    },
    {
      "order_id": "7402100000000061002",
      "code": "200",
      "message": ""
    }
  ]
}