Cancel Order
Description
Cancel order
HTTP Request
- POST /open/api/cancel_order
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| api_key | String | Yes | the key is in the user api management |
| time | Long | Yes | it is the current timestamp |
| sign | String | Yes | the string is generated according to signature rule |
| symbol | String | Yes | coin pair, example: btcusdt |
| order_id | Long | No | order ID Either order_id or clientOrderId is required |
| clientOrderId | String | No | client order ID Either order_id or clientOrderId is required |
Request Example
http
curl -X POST 'https://openapi.100ex.com/open/api/cancel_order' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d 'api_key=*********&time=1736303665297&sign=*********&symbol=btcusdt&order_id=443037583316877312'Response Parameters
| Parameter | Type | Description |
|---|---|---|
Response Example
json
{
"code": "0",
"msg": "suc",
"data": null,
"message": null,
"traceId": null
}Status Code
| Code | Description |
|---|---|
| 0 | success |
| 1 | system error |
| 2 | parameters error |
| 8 | fail to cancel order |
| 9 | the trading was froze |
| 22 | the order don't exist |
| 100004 | illegal parameter |
| 100005 | illegal sign |
| 100007 | illegal ip address |
| 100008 | the request time is expired |
| 210006 | this user isn't in the whitelist of open-api |
