Cancel All Orders
Type: POST
Description: /future/trade/v1/order/cancel-all
Limit Flow Rules
200/s/apikey
Parameters
| Name | Type | Mandatory | Default | Description | Ranges |
|---|---|---|---|---|---|
| symbol | string | true | N/A | Trading pair (cancel all trading pair orders if pass "") |
Request Example
Request
curl -X POST "https://fapi.xt.com/future/trade/v1/order/cancel-all" -H "validate-appkey: $APPKEY" # Required
-H "validate-timestamp: $TIMESTAMP" # Required
-H "validate-singature: $SINGATURE" # Required
-H "Content-Type: application/x-www-form-urlencoded" # Required
-d "symbol=eth_usdt" # Required
Response Example
Response
{
"error": {
"code": "",
"msg": ""
},
"msgInfo": "",
"result": true,
"returnCode": 0
}
Error Codes
| Error code | Description |
|---|---|
| invalid_symbol | Trading pair does not exist |
| fail | Internal error |