Cancel All Orders
Cancel all open orders
Normal account covers: Spot / USDT perpetual / Inverse contract
info
- Support cancel orders by
symbol
/baseCoin
/settleCoin
. If you pass multiple of these params, the system will process one of param, which priority issymbol
>baseCoin
>settleCoin
. - NOTE:
category
forlinear
orinverse
, you must specify one of those three params. - NOTE:
category
=spot, you can cancel all spot open orders (normal order by default) without passing other params.
HTTP Request
POST /cloud/trade/v3/order/cancel-all
Request Parameters
Parameter | Required | Type | Comments |
---|---|---|---|
category | true | string | Product type
|
symbol | false | string | Symbol name. linear & inverse : Required if not passing baseCoin or settleCoin |
baseCoin | false | string | Base coin
|
settleCoin | false | string | Settle coin
|
orderFilter | false | string |
|
stopOrderType | false | string | Stop order type Stop linear or inverse and orderFilter=StopOrder ,you can cancel conditional orders except TP/SL order and Trailing stop orders with this param |
Response Parameters
Parameter | Type | Comments |
---|---|---|
list | array | Object |
> orderId | string | Order ID |
> orderLinkId | string | User customised order ID |
success | string | "1": success, "0": fail |
Request Example
POST /cloud/trade/v3/order/cancel-all HTTP/1.1
Host: openapi-testnet.zoomex.com
X-BAPI-SIGN: XXXXX
X-BAPI-API-KEY: XXXXX
X-BAPI-TIMESTAMP: 1672219779140
X-BAPI-RECV-WINDOW: 5000
Content-Type: application/json
{
"category": "linear",
"symbol": null,
"settleCoin": "USDT"
}
Response Example
- Linear/Inverse
{
"retCode": 0,
"retMsg": "OK",
"result": {
"list": [
{
"orderId": "f6a73e1f-39b5-4dee-af21-1460b2e3b27c",
"orderLinkId": "a001"
}
]
},
"retExtInfo": {},
"time": 1672219780463
}