Cancel Order
HTTP request Cancel order
- POST
/api/v2/trade/cancel-order
Rate limit: 10 requests/second
Request parameters
Parameter | Parameter type | Required? | Description |
---|---|---|---|
symbol | String | Yes | Trading pair. For details, view: /products |
orderId | String | No | Either Order ID or clientOid is required. |
clientOid | String | No | Either 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 Name | Type | Field Description |
---|---|---|
order_id | String | Order ID |
client_oid | String | Client order ID |
symbol | String | Trading pair |
result | Boolean | Cancellation result |
err_code | String | Error code |
err_msg | String | Error 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
}
}