Batch Cancel Orders
Cancel multiple orders in batch.
Interface Information
- Method:
POST - Path:
/api/v1/stock/open-api/batchCancelOrder
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| symbol | string | Yes | Stock symbol |
| orderIds | array | Yes | Order 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:
| Field | Type | Description |
|---|---|---|
| orderId | string | Order ID |
| success | bool | Success status |
| errorMsg | string | Error message (returned on failure) |
| errorCode | int | Error 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"
}
]
}