v9

latestOpenAPI 3.0.0raw.githubusercontent.com2026-06-2491679.8 KB
Trading

Cancel Order

Start a cancel on an existing open order. Returns the cancel payload for the wallet to sign — you then submit the signature to POST /v0/orders/cancel.

The SDK's cancelOrder() chains both steps. Call this endpoint directly only if you need to show the cancel to a user before signing.

post/v0/orders/cancel/build

Request body

order_idstring required

Unified order id, as returned by fetchOpenOrdersHosted.

user_addressstring required

EVM wallet address that owns the resting order and will sign the cancel typed data.

Response

Cancel build response.

cancel_idstring required

Opaque server-side key for this cancel build. Pass it to POST /v0/orders/cancel with the EIP-712 signature(s) before deadline.

typed_dataobject required

EIP-712 typed-data payload to sign locally with the wallet key matching user_address. Return the signature when submitting the cancel.

pull_typed_dataobject nullable

Optional secondary EIP-712 payload for venues that require a pull-authorization cancel (Polymarket neg-risk markets). Sign with the same wallet and return as pull_signature. null when not required.

deadlineinteger required

Unix epoch (s) after which the cancel build expires. Submit the signed cancel before this time or call cancelOrderHosted again.