Orders
Cancel Order
Withdraw a resting order and release what it reserved
DELETE
Cancels an order that is still
OPEN or PARTIALLY_FILLED. Only the wallet that placed the order can cancel it: userAddress must match the order’s owner, and a mismatch reads the same as a missing order.
Filled, expired and already-cancelled orders return ORDER_NOT_FOUND, so a second attempt on the same order fails the same way as one that never existed.
The order row is marked CANCELLED first, so the depth disappears immediately. Releasing the custody lock behind it is attempted afterwards, and a failure there is logged rather than surfaced: the cancel still succeeds, and the lock is retried by the balance lock reconciler. Only the unfilled remainder is released.
Path Parameters
string
required
The order’s
orderId. Up to 100 characters.Body Parameters
string
required
Wallet that placed the order.
Response Fields
Returns the cancelled order, withstatus: "CANCELLED" and cancelReason: "USER_CANCELLED".
