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.
NotSupported in hosted mode — for those, run a local PMXT service.Authorizations
Required when calling the hosted API directly (curl, requests, fetch). SDK users pass credentials via constructor params instead.
Body
Response
Cancel build response.
Opaque server-side key for this cancel build. Pass it to POST /v0/orders/cancel with the EIP-712 signature(s) before deadline.
EIP-712 typed-data payload to sign locally with the wallet key matching user_address. Return the signature when submitting the cancel.
Unix epoch (s) after which the cancel build expires. Submit the signed cancel before this time or call cancelOrderHosted again.
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.

