Skip to main content
Hyperliquid
POST/exchange

Request Headers

string
required
Must be application/json

Request Body

object
required
Signed action. Unknown keys are rejected.
number
required
Replay-protection nonce, e.g., 1701234567890
object
required
Account owner or approved API wallet; use the exchange signing format.
string
Optional account-owner address. Rejects the request if the verified signer currently maps to another account. This unsigned check does not select an account or grant access.
number
Optional signed deadline in Unix milliseconds; requests after it are rejected

Response

Response Fields

string
"ok" when a result is returned; inspect response.data.status for the outcome.
string
Always "twapOrder".
string
  • pending: The TWAP was recorded. Admission checks applied when it is recorded can still store it as "rejected" with a reason, for example a closing isolated assignment or a reduce-only TWAP with no position to close. Read its outcome with Get TWAP schedule or TWAP Updates.
  • rejected: The first-slice checks failed when the request was recorded; no TWAP was created.
string
Optional. Deterministic ID derived from the signed request. Present on pending, and on a rejected response returned for a resubmission of an already-processed request.
string
Optional. Rejection reason on rejected.