Skip to main content
HyperliquidPolymarket
POST/exchange

Request Headers

string
required
Must be application/json

Request Body

object
required
Signed action.
number
required
Replay-protection nonce, e.g., 1785254405000
number
required
Signed request expiry in Unix milliseconds; must be in the future and no later than the quote expiry.
object
required
Signed by the account owner, quote.terms.userAddress; use the protocol-transfer signing format. API wallets are not authorized to sign this action.
number
Send 2 for the readable NotionalTransaction:ProtocolTransfer signature. Omitting this field selects the legacy Agent signature.
string
Hex chain ID matching the wallet’s EIP-712 domain. Required for version 2. Legacy signatures default to 1337 and use the NotionalExchange domain.

Response

Response Fields

string
"ok" on acceptance; "error" on an identical retry of a recorded rejection.
string
Always "executeProtocolTransfer".
string
Recorded Notional request transaction ID
string
Transfer ID from the quote; track it with Get transfer status. Submitting the same quote again with a new nonce, before it expires, returns the same transferId and does not debit funds again.
string
pending on acceptance or rejected on a recorded rejection.
number
Block number that recorded the request. Omitted when an identical retry returns the recorded result.