Skip to main content

Send Cancel REST API Endpoint

Submit signed cancel action to the exchange.

Updated on
May 19, 2026
info

Exchange API calls do not consume Quicknode API credits. Transactions through this endpoint are appended with a builder fee. See hyperliquidapi.com for a full breakdown. To white-label with your own builder code, contact us.

This endpoint is not a drop-in replacement for Hyperliquid's native /exchange endpoint. See the Exchange API Overview for key differences.


Body Parameters

action
object
REQUIRED

Cancel action object in wire format (from build-cancel response)

type
string

Action type ("cancel")

cancels
array

Array of orders to cancel

a
integer

Asset index (0 for BTC, 1 for ETH, etc.)

o
integer

Order ID

f
boolean

Optional. Set to true to request a Hyperliquid fast cancel. Omit when not using fast cancel; f: false is removed before the action is signed.

nonce
integer
REQUIRED

Nonce from build-cancel response

signature
object
REQUIRED

Wallet signature

r
string

Signature r value

s
string

Signature s value

v
integer

Signature v value

vaultAddress
string

Optional vault address

expiresAfter
integer

Optional expiration timestamp (ms)

Returns

success
boolean

Whether the cancellation was successfully submitted

user
string

User address (0x-prefixed hex string)

exchangeResponse
object

Response from Hyperliquid exchange with cancellation details

Request
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free