Skip to content
Order Cancellation

Cancel Order

Cancels one open order, including conditional orders (LIT, MIT) and trailing stop orders that have not triggered. Used by the Cancel action on the order details and the order list. A successful response means the cancellation request has been accepted. Use the order details or order push to track the order's final status, and refresh the order list after success. On failure, show message and refresh the order details to confirm the order's actual status.

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

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

POSThttps://api.lbkrs.com/v2/orders/withdraw

Request body application/json

order_idstringrequired

ID of the order to cancel

Responses

HTTP 200Request succeeded. The response body contains the result of the Cancel Order operation.
Standard response envelopecodemessagedata
dataobjectdata structure

No business fields

No nested fields

Whale Docs