Cancel Multiple orders

Rate Limit: 2 request per 1 second

Tip:
You can cancel order by websocket after login.

Request

{
	"id": "1",
	"action": "CANCEL_MULTI_ORDER",
	"args": [{
		'clientOrderId': '',
		'orderId': '2068661347173185'
	},
	{
		'clientOrderId': 'test2',
		'orderId': ''
	},
	]
}
Field nameTypeNecessaryRemarks
idStringNclient request id
actionStringYCANCEL_MULTI_ORDER
argsObjectYrequest params
> orderIdStringNOrder ID
> clientOrderIdStringNCustomer defined order ID ,only support letters(a-z) and numbers(0-9)

Tip:

  1. Either orderId or clientOrderId must be sent. If both orderId and clientOrderId are provided, orderId takes precedence,note that you can only cancel orders in the NEW/OPEN/PARTIALLY_FILLED status,otherwise even if the api request successful, it does not mean that the order has been cancelled.
  2. Max order cancellation limit: 10 per request.
  3. Results are returned in the same sequence as the provided array.

Response

Success example:

{
	'id': '1',
	'event': 'CANCEL_MULTI_ORDER',
	'code': 200000,
	'msg': 'Success',
	'data': [{
		'msg': 'Success',
		'orderId': '2068661347173185',
		'clientOrderId': '',
		'code': '200000'
	},
	{
		'msg': 'Success',
		'orderId': '2068662764926785',
		'clientOrderId': 'test2',
		'code': '200000'
	}]
}

Fail example:

{
  "id": "",
  "event": "CANCEL_MULTI_ORDER",
  "code": 601011,
  "msg": "Not support this operation"
}
Field nameTypeRemarks
idStringclient request id
eventStringEvent
codeStringCode
msgStringMsg
dataObjectresponse data
> orderIdStringOrder ID
> clientOrderIdStringCustomer-defined order ID