Skip to main content
DELETE
xo-orderbook-client-rs

Body

application/json
orderId
integer<int64>
required
marketId
string
required
signature
string
required

EIP-712 sig over CancelOrder(orderId, marketId)

signatureType
enum<integer>
required

0 = EOA, 3 = EIP-1271 smart wallet

Available options:
0,
3
signer
string

Required when signatureType = 3

Response

OK

Wire shape uses camelCase (canceled / notCanceled) per the CLOB SDK contract. American spelling — one l (NOT cancelled). Shared by DELETE /order, DELETE /orders, DELETE /cancel-all, DELETE /cancel-market-orders.

canceled
string[]
required

Order ids that were successfully cancelled, decimal strings.

notCanceled
object
required

Map of <order_id> → <reason> for orders that could not be cancelled. Common reasons: "already filled", "not found", "not owner".