Skip to content
Order Cancellation

Cancel Orders by ID

Submits cancellation requests for the order IDs selected by the Client. A successful response means only that the cancellation requests were accepted; check the final state of each order through the order list, order details, or order push updates. On success, refresh the order list. On failure, show message and refresh the order list to confirm the actual state of each order.

Batch cancellation by order ID does not cancel conditional orders or trailing stop orders that have not triggered: the request succeeds and the orders stay open. Cancel those orders one at a time with Cancel Order (POST /v2/orders/withdraw).

When you call this operation through WhaleCore requestService(), set requiresTradeToken to true.

WhaleCore's orderService() wraps this endpoint as the typed method batchCancelOrdersByIds. If you use WhaleCore, prefer that method.

POSThttps://api.lbkrs.com/v1/orders/batch_withdraw/order_id

Request body application/json

order_idsarray<string>required

IDs of the orders to cancel

Responses

HTTP 200The request succeeded. The response body contains the result of the “Cancel Orders by ID” operation.
Standard response envelopecodemessagedata
dataobjectdata structure

No business fields

No nested fields

Whale Docs