Cancel Order
- POST
/capi/v2/order/cancel_order
Request parameters
| Parameter | Type | Required? | Description |
|---|---|---|---|
| symbol | String | Yes | Trading pair |
| 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-contract.weex.com/capi/v2/order/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":"cmt_bchusdt","orderId":"596471064624628269"}'
Response parameters
| Parameter | Type | Description |
|---|---|---|
| symbol | string | Trading pair |
| order_id | string | Order ID |
| client_oid | string | Client identifier |
| result | boolean | Cancellation status |
Response example
{
"order_id": "596476148997685805",
"client_oid": null,
"symbol": "cmt_bchusdt",
"result": true,
"err_code": null,
"err_msg": null
}