Skip to main content

Batch Cancel Order

Description

  • Batch order cancellation allows partial success.
  • In batch order cancellation, ensure that each call uses only orderId or clientOid for identification, and avoid mixing them. If orderId and clientOid are used together in one call, clientOid will be invalid.
  • Please contact your BD or RM to apply for access permissions.
Request Example
{
"args": [
{
"orderId": "xxxxxxxx"
},
{
"orderId": "xxxxxxxx"
}
],
"id": "xxxxx-xxx-xxx-xxxx-xxxxxx",
"op": "trade",
"topic": "batch-cancel"
}

Request Parameters

ParameterTypeRequiredDescription
opStringYesOperation:
trade trade
idStringYesRequest identifier
topicStringYesopic
batch-cancel
argsList<Object>YesChannel list
> orderIdStringNoOrder ID
Either clientOid or orderId must be provided. If both are present or do not match, orderId will take priority
> clientOidStringNoClient order ID
Either clientOid or orderId must be provided. If both are present or do not match, orderId will take priority
Response Example
{
"event": "trade",
"id": "bb553cc0-c1fa-454e-956d-c96c8d715760",
"topic": "batch-cancel",
"args": [
{
"code": "0",
"msg": "Success",
"orderId": "xxxxxxxxxxxxx"
},
{
"code": "25204",
"msg": "Order does not exist",
"orderId": "xxxxxxxxxxxxx"
}
],
"code": "0",
"msg": "Success",
"ts": "1751980011084"
}

Response Parameters

ParametersTypeDescription
eventStringEvent
trade/error
idStringRequest identifier
topicStringTopic
batch-cancel
argsList<Object>Channel list
> codeStringCode
> msgStringMessage
> orderIdStringOrder ID
> clientOidStringClient order ID
codeStringCode
msgStringMessage
tsStringTimestamp

How was your Reading Experience with us?