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
Processed leverage or margin action from the Build Leverage or Margin Action response
- typestring
Action type ("updateLeverage", "updateIsolatedMargin", or "topUpIsolatedOnlyMargin")
- nonceintegerREQUIRED
Nonce from the Build Leverage or Margin Action response (timestamp in milliseconds)
- signatureobjectREQUIRED
ECDSA signature of the hash from Build Leverage or Margin Action
- rstring
Signature r value (0x-prefixed hex string)
- sstring
Signature s value (0x-prefixed hex string)
- vinteger
Signature v value (27 or 28)
Returns
- successboolean
Whether the action was successfully submitted
- userstring
User address (0x-prefixed hex string)
- exchangeResponseobject
Response from Hyperliquid exchange