Skip to content

Cancel Order

Description

Cancel order

HTTP Request

  • POST /open/api/cancel_order

Request Parameters

ParameterTypeRequiredDescription
api_keyStringYesthe key is in the user api management
timeLongYesit is the current timestamp
signStringYesthe string is generated according to signature rule
symbolStringYescoin pair, example: btcusdt
order_idLongNoorder ID
Either order_id or clientOrderId is required
clientOrderIdStringNoclient 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

ParameterTypeDescription

Response Example

json
{
    "code": "0",
    "msg": "suc",
    "data": null,
    "message": null,
    "traceId": null
}

Status Code

CodeDescription
0success
1system error
2parameters error
8fail to cancel order
9the trading was froze
22the order don't exist
100004illegal parameter
100005illegal sign
100007illegal ip address
100008the request time is expired
210006this user isn't in the whitelist of open-api