HTTP · Spot trading
Batch Cancel Orders
Cancels up to 50 orders in one request, by orderId or clientOid.
Request parameters
| Name | Type | Required | Description |
|---|---|---|---|
| symbol body | string | Optional | Trading pair, e.g. BTCUSDT |
| userId body | string | Optional | User |
| orderList body | array | Yes | List of order IDs (max 50) |
| orderId body | string | Optional | Either orderId or clientOid is required |
| clientOid body | string | Optional | Either orderId or clientOid is required |
Request example
{ "orderList": [ { "clientOid": "osl-global-eth-usdtXMRX3ea35dac900006", "orderId": "1385467742622101504" } ], "symbol": "BTCUSD", "userId": "1009178902657"}Response fields
| Field | Type | Description |
|---|---|---|
| successList | array | Orders cancelled |
| orderId | string | Order ID |
| clientOid | string | Client order ID |
| failureList | array | Orders that failed |
| orderId | string | Order ID |
| clientOid | string | Client order ID |
| errorMsg | string | Error message |
| errorCode | string | Error code |
Response example
{ "code": "00000", "msg": "success", "requestTime": 1766131208282, "data": { "successList": [], "failureList": [ { "orderId": "1385467742622101504", "clientOid": null, "errorMsg": "Order does not exist", "errorCode": null } ] }}