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
- actionobjectREQUIRED
Cancel action object in wire format (from build-cancel response)
- typestring
Action type ("cancel")
- cancelsarray
Array of orders to cancel
- ainteger
Asset index (0 for BTC, 1 for ETH, etc.)
- ointeger
Order ID
- fboolean
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.
- nonceintegerREQUIRED
Nonce from build-cancel response
- signatureobjectREQUIRED
Wallet signature
- rstring
Signature r value
- sstring
Signature s value
- vinteger
Signature v value
- vaultAddressstring
Optional vault address
- expiresAfterinteger
Optional expiration timestamp (ms)
Returns
- successboolean
Whether the cancellation was successfully submitted
- userstring
User address (0x-prefixed hex string)
- exchangeResponseobject
Response from Hyperliquid exchange with cancellation details