Rate Limit: 3 requests per 10 seconds
Tip:
You can cancel order by websocket after login.
Request
{
"id": "XXX",
"action": "cancel_order",
"args":
{
"algoOrderId": "XXX"
"clientOrderId": "XXXX",
"orderId": "XXX"
}
}
Field name | Type | Necessary | Remarks |
---|---|---|---|
id | String | N | client request id |
action | String | Y | cancel_order |
args | Object | Y | request params |
> algoOrderId | String | N | Algo Order ID |
> orderId | String | N | Order ID |
> clientOrderId | String | N | Customer defined order ID ,only support letters(a-z) and numbers(0-9) |
Tip:For TPSL, either algoOrderId or clientOrderId must be sent; For ATTACHED_TPSL, either orderId or clientOrderId must be sent.
Response
Success example:
{
"id": "XXXX", // request id
"event": "cancel_order",
"code": "0",
"msg": "",
"data": {
"algoOrderId": "XXXX"
"clientOrderId": "XXXX"
"orderId": "XXXXX",
}
}
Fail example:
{
"id":"***", //
"event": "error",
"code": "60009",
"msg": "Cancel Order failed."
}
Field name | Type | Remarks |
---|---|---|
id | String | client request id |
event | String | Event |
code | String | Code |
msg | String | Msg |
data | Object | response data |
> algoOrderId | String | Algo Order ID |
> orderId | String | Order ID |
> clientOrderId | String | Customer-defined order ID |