HTTP · Spot trading

Batch Cancel Orders

Cancels up to 50 orders in one request, by orderId or clientOid.

POSThttps://api.koinsayang.com/api/v2/spot/trade/batch-cancel-order

Request parameters

NameTypeRequiredDescription
symbol
body
stringOptionalTrading pair, e.g. BTCUSDT
userId
body
stringOptionalUser
orderList
body
arrayYesList of order IDs (max 50)
orderId
body
stringOptionalEither orderId or clientOid is required
clientOid
body
stringOptionalEither orderId or clientOid is required

Request example

application/json
{
"orderList": [
{
"clientOid": "osl-global-eth-usdtXMRX3ea35dac900006",
"orderId": "1385467742622101504"
}
],
"symbol": "BTCUSD",
"userId": "1009178902657"
}

Response fields

FieldTypeDescription
successListarrayOrders cancelled
orderIdstringOrder ID
clientOidstringClient order ID
failureListarrayOrders that failed
orderIdstringOrder ID
clientOidstringClient order ID
errorMsgstringError message
errorCodestringError code

Response example

200 · application/json
{
"code": "00000",
"msg": "success",
"requestTime": 1766131208282,
"data": {
"successList": [],
"failureList": [
{
"orderId": "1385467742622101504",
"clientOid": null,
"errorMsg": "Order does not exist",
"errorCode": null
}
]
}
}