Build Leverage or Margin Action REST API Endpoint
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.
Body Parameters
action
object
REQUIRED
Loading...
type
string
Loading...
asset
string or integer
Loading...
isCross
boolean
Loading...
leverage
number or string
Loading...
isBuy
boolean
Loading...
ntli
number
Loading...
Returns
hash
string
Loading...
nonce
integer
Loading...
action
object
Loading...
actionType
string
Loading...
nextStep
string
Loading...
Request
1curl -s -X POST https://docs-demo.hype-mainnet.quiknode.pro/hypercore/exchange \2-H "Content-Type: application/json" \3-d '{4"action": {5"type": "updateLeverage",6"asset": "BTC",7"isCross": true,8"leverage": 109}10}'11
1curl -s -X POST https://docs-demo.hype-mainnet.quiknode.pro/hypercore/exchange \2-H "Content-Type: application/json" \3-d '{4"action": {5"type": "updateLeverage",6"asset": "BTC",7"isCross": true,8"leverage": 109}10}'11
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free