Skip to main content
POST
Available on: Polymarket, Opinion, Limitless. Other venues raise NotSupported in hosted mode — for those, run a local PMXT service.
Before your first call: deposit USDC on Polygon at pmxt.dev/dashboard/wallet (one-time setup). For the programmatic flow, see escrow lifecycle.
Use any EVM private key. Your USDC sits in a non-custodial PreFundedEscrow on Polygon — for Polymarket, Opinion, and Limitless. PMXT cannot move funds without your EIP-712 signature.

Authorizations

Authorization
string
header
required

Required when calling the hosted API directly (curl, requests, fetch). SDK users pass credentials via constructor params instead.

Body

application/json
order_id
string
required

Unified order id, as returned by fetchOpenOrdersHosted.

user_address
string
required

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

Response

Cancel build response.

cancel_id
string
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_data
object
required

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

deadline
integer
required

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

pull_typed_data
object | null

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.