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.
Body Parameters
- actionobjectREQUIRED
Cancel action object
- typestring
Action type ("cancel")
- cancelsarray
Array of orders to cancel
- astring
Asset name (e.g., "BTC", "ETH") or asset index as integer (0, 1, 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.
- vaultAddressstring
Optional vault address
- expiresAfterinteger
Optional expiration timestamp (ms)
Returns
- hashstring
Hash to sign with wallet (0x-prefixed hex string)
- nonceinteger
Unique nonce for this action (timestamp in milliseconds)
- actionobject
Processed cancel action object in wire format
- typestring
Action type ("cancel")
- cancelsarray
Array of orders to cancel in wire format
- ainteger
Asset index (0 for BTC, 1 for ETH, etc.)
- ointeger
Order ID
- summarystring
Human-readable summary of orders being cancelled (e.g., "Canceling 1 BTC order (OID: 123456789)")
- assetsarray
Array of asset information for the orders being cancelled
- indexinteger
Asset index (0 for BTC, 1 for ETH, etc.)
- namestring
Asset name (e.g., "BTC", "ETH")
- isSpotboolean
Whether this is a spot market asset
- szDecimalsinteger
Number of decimal places for size/quantity