Skip to main content
Version: Next

Batch Cancel Orders

Cancel multiple orders in batch.

Interface Information

  • Method: POST
  • Path: /api/v1/stock/open-api/batchCancelOrder

Request Parameters

ParameterTypeRequiredDescription
symbolstringYesStock symbol
orderIdsarrayYesOrder ID list, max 10 orders

Request Example

{
"symbol": "AAPL",
"orderIds": [
"123456789",
"123456790",
"123456791"
]
}

Response Fields

data is an array, each element corresponds to the cancellation result of one order:

FieldTypeDescription
orderIdstringOrder ID
successboolSuccess status
errorMsgstringError message (returned on failure)
errorCodeintError code (returned on failure)

Response Example

{
"code": 0,
"msg": "success",
"data": [
{
"orderId": "123456789",
"success": true
},
{
"orderId": "123456790",
"success": false,
"errorCode": 1001,
"errorMsg": "Order not found"
}
]
}