Skip to main content
Version: V2

Cancel Order

HTTP request Cancel order

  • POST /api/v2/trade/cancel-order

Rate limit: 10 requests/second

Request parameters

ParameterParameter typeRequired?Description
symbolStringYesTrading pair. For details, view: /products
orderIdStringNoEither Order ID or clientOid is required.
clientOidStringNoEither Client customized ID or orderId is required.

Request example

curl -X POST "https://api-spot.weex.com/api/v2/trade/cancel-order" \
-H "ACCESS-KEY:*******" \
-H "ACCESS-SIGN:*" \
-H "ACCESS-PASSPHRASE:*" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:zh-CN" \
-H "Content-Type: application/json" \
-d '{"symbol": "WXTUSDT_SPBL","orderId": "602882076026339770"}'

Response parameters

Field NameTypeField Description
order_idStringOrder ID
client_oidStringClient order ID
symbolStringTrading pair
resultBooleanCancellation result
err_codeStringError code
err_msgStringError message

Response example

{
"code": "00000",
"msg": "success",
"requestTime": 1743740792018,
"data": {
"order_id": "602882076026339770",
"client_oid": null,
"symbol": "WXTUSDT_SPBL",
"result": true,
"err_code": null,
"err_msg": null
}
}