Skip to content

批量撤单

描述

批量撤单

HTTP 请求

  • POST /open/api/batchCancelOrders

请求参数

参数名参数类型是否必须描述
api_keyStringapi管理的key
timeLong当下时间戳
signString经过签名规则产生的字串
symbolString币对,例如: btcusdt
orderListList<Object>下单订单集合, 最大长度: 1000
>orderList.orderIdLongNo订单ID
order_id 与 clientOrderId 二选一
>orderList.clientOrderIdStringNo自定义订单ID
order_id 与 clientOrderId 二选一

请求示例

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"}]'

返回参数

返回字段字段类型字段说明
successListList成功订单数组
>orderIdLong订单ID
>clientOrderIdString自定义订单ID

返回示例

json
{
    "code": "0",
    "msg": "suc",
    "data": {
        "successList": [
            {
                "orderId": 443057883307835393,
                "clientOrderId": "client00005"
            },
            {
                "orderId": 443057883307835392,
                "clientOrderId": "client00004"
            }
        ]
    },
    "message": null,
    "traceId": null
}

Status Code

CodeDescription
0success
1system error
2parameters error
3user's trading has been frozen
5fail to place order
9the trading was froze
31the price or amount is less than the minimum value
35placing orders is not allowed
100004illegal parameter
100005illegal sign
100007illegal ip address
100008the request time is expired
10062price or volume precision exceeds the maximum limit.
10063the volume is less than the minimum value
101151there are open liquidation orders for the coin pair
210006this user isn't in the whitelist of open-api
210014Spot bulk order exceeds the maximum limit
210015Spot bulk cancellation exceeds the maximum limit