Skip to main content
HyperliquidPolymarket
POST/exchange

Request Headers

string
required
Must be application/json

Request Body

object
required
Signed action.
number
required
Timestamp in milliseconds for replay protection, e.g., 1701234567890
object
required
Account owner only; use the withdrawal signing format.

Response

Response Fields

boolean
  • true: Confirms the withdrawal request was accepted.
  • false: Reports that an identical retry matched a request that was already rejected.
string
Deterministic transaction ID, e.g., "0x3db79d760e9677bff7514638f9e67802dc7c12d2ba055c46506e27ec9379d859"
string
"pending" on acceptance; execution happens asynchronously. An identical retry of a recorded rejection returns "failed" with success: false.
string
Rejection reason on a rejected retry.

Refusals before submission

A Hyperliquid withdrawal is refused with 400 before it is submitted when:
  • the signer has no positive balance in the requested asset and source (VALIDATION_FAILED);
  • the account is frozen or has an active liquidation (INVALID_STATE);
  • the amount is above the available balance, or the segregated balance for "segregated" (INSUFFICIENT_BALANCE, field: "amount").
While the USDC pool can be revalued in the same transaction (LP inventory holds spot obligations), a USDC "balance" over-ask is not checked here: it is submitted, refused with VALIDATION_FAILED and an INVARIANT_INSUFFICIENT_BALANCE error, and its nonce is used. A non-USDC withdrawal returns 503 SERVICE_UNAVAILABLE when the destination’s Hyperliquid activation cannot be confirmed. A withdrawal that needs a destination check (non-USDC, or USDC below the new-account minimum) also returns 503 while too many checks have been made; the error names the wait. Retry after Retry-After, which can be up to 30 minutes. These refusals leave the nonce unused: the same signed request is evaluated again if it is resent while its nonce is valid.