Batch Cancel Orders
Description
Cancel orders in batch
HTTP Request
- POST /open/api/batchCancelOrders
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| api_key | String | Yes | the key is in the user api management |
| time | Long | Yes | it is the current timestamp |
| sign | String | Yes | the string is generated according to signature rule |
| symbol | String | Yes | coin pair, example: btcusdt |
| orderList | List<Object> | No | order list, which length must be less than 1000 |
| >orderList.orderId | Long | No | order ID Either order_id or clientOrderId is required |
| >orderList.clientOrderId | String | No | client order ID Either order_id or clientOrderId is required |
Request Example
http
curl -X POST 'https://openapi.100ex.com/open/api/batchCancelOrders' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d 'api_key=*********&time=1743921229830&sign=*********&symbol=BTCUSDT&symbol=BTCUSDT&orderList=[{"clientOrderId":"client00004"},{"orderId":"443057883307835393"}]'Response Parameters
| Parameter | Type | Description |
|---|---|---|
| successList | List | Successful order list |
| >orderId | Long | Order ID |
| >clientOrderId | String | Client order ID |
Response Example
json
{
"code": "0",
"msg": "suc",
"data": {
"successList": [
{
"orderId": 443057883307835393,
"clientOrderId": "client00005"
},
{
"orderId": 443057883307835392,
"clientOrderId": "client00004"
}
]
},
"message": null,
"traceId": null
}Status Code
| Code | Description |
|---|---|
| 0 | success |
| 1 | system error |
| 2 | parameters error |
| 3 | user's trading has been frozen |
| 5 | fail to place order |
| 9 | the trading was froze |
| 31 | the price or amount is less than the minimum value |
| 35 | placing orders is not allowed |
| 100004 | illegal parameter |
| 100005 | illegal sign |
| 100007 | illegal ip address |
| 100008 | the request time is expired |
| 10062 | price or volume precision exceeds the maximum limit. |
| 10063 | the volume is less than the minimum value |
| 101151 | there are open liquidation orders for the coin pair |
| 210006 | this user isn't in the whitelist of open-api |
| 210014 | Spot bulk order exceeds the maximum limit |
| 210015 | Spot bulk cancellation exceeds the maximum limit |
