Skip to main content

Cancel All Orders

Type: POST

Description: /future/trade/v1/order/cancel-all

Limit Flow Rules

200/s/apikey

Parameters

NameTypeMandatoryDefaultDescriptionRanges
symbolstringtrueN/ATrading 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 codeDescription
invalid_symbolTrading pair does not exist
failInternal error