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
Market order action object
- typestring
Action type ("order")
- ordersarray
Array of market order objects
- assetstring
Asset name (e.g., "BTC", "ETH", "HYPE")
- sidestring
Order side ("buy" or "sell")
- sizestring
Order size/quantity
- tifstring
Time in force: "market" (will be converted to IOC with computed price)
- slippagenumber
Optional slippage tolerance as a decimal (e.g. 0.05 = 5%). Default 3%. Range 0.1% to 10%. Applied to the computed IOC limit price.
- priorityFeeinteger or string
Optional priority fee rate. The value is interpreted as p / 100000000 of filled notional, so 10000 equals 1 basis point and the maximum is 80000 (8 basis points). Applies only to IOC orders; market orders are built as IOC limits, so they are eligible. Charged from the undelegated staking HYPE balance (use Build Priority Funding Deposit to fund it). Not supported for HIP-4 orders.
Returns
- hashstring
Hash to sign with wallet (0x-prefixed hex string)
- nonceinteger
Unique nonce for this action (timestamp in milliseconds)
- actionobject
Processed action object in wire format with computed price (mid price + 3% slippage) and IOC tif
- typestring
Action type ("order")
- ordersarray
Array of order objects in wire format with computed price
- ainteger
Asset index (0 for BTC, 1 for ETH, etc.)
- bboolean
Buy side (true for buy, false for sell)
- pstring
Computed price with 3% slippage applied (stringified number)
- sstring
Size/quantity as a stringified number
- rboolean
Reduce-only flag (false for market orders)
- tobject
Order type specification (IOC limit)
- limitobject
Limit order type
- tifstring
Time in force ("Ioc" - Immediate or Cancel)
- groupingstring
Order grouping strategy: "na" (Normal Action)
- isSpotboolean
Whether this is a spot market order
- builderFeestring
Builder fee as percentage string (e.g., "0.04%")
- builderFeeRawinteger
Builder fee in basis points (e.g., 40 = 0.04%)
- builderstring
Builder address (0x-prefixed hex string)
- nextStepstring
Instructions for next step: sign the hash with private key (ECDSA), then POST /exchange with action, nonce, and signature (r, s, v)
- appliedSlippagestring
Slippage applied to the mid price as a percentage string (e.g., "3.0%")
- appliedSlippageRawnumber
Slippage applied as a decimal fraction (e.g., 0.03 for 3%)
- priorityFeeinteger
Priority fee rate, if specified in the request. The value is interpreted as p / 100000000 of filled notional, so 10000 equals 1 basis point and the maximum is 80000 (8 basis points).