Skip to main content
Hyperliquid
POST/exchange

Request Headers

string
required
Must be application/json

Request Body

object
required
Signed action.
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 "twapCancel".
string
canceled when the cancel is recorded: no further slices are placed. A slice already being placed is not withdrawn, and any fill from it still counts. failed when the cancel is rejected while being recorded.
string
Optional. The canceled TWAP’s ID. Present on canceled, and on a failed response returned for a resubmission of an already-processed request.
string
Optional. Rejection reason on failed.