Skip to main content

Send Leverage or Margin Action REST API Endpoint

Submit a signed leverage or margin action to the exchange. Use after Build Leverage or Margin Action.

Updated on
Jun 29, 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

Processed leverage or margin action from the Build Leverage or Margin Action response

type
string

Action type ("updateLeverage", "updateIsolatedMargin", or "topUpIsolatedOnlyMargin")

nonce
integer
REQUIRED

Nonce from the Build Leverage or Margin Action response (timestamp in milliseconds)

signature
object
REQUIRED

ECDSA signature of the hash from Build Leverage or Margin Action

r
string

Signature r value (0x-prefixed hex string)

s
string

Signature s value (0x-prefixed hex string)

v
integer

Signature v value (27 or 28)

Returns

success
boolean

Whether the action was successfully submitted

user
string

User address (0x-prefixed hex string)

exchangeResponse
object

Response from Hyperliquid exchange

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