cURL
crossMargin
curl --request POST \ --url https://api.hypereth.io/v2/hyperliquid/updateLeverage \ --header 'Content-Type: application/json' \ --header 'X-API-KEY: <api-key>' \ --data '{ "symbol": "BTC", "leverage": 10, "marginType": "cross"}'
{ "symbol": "BTC", "leverage": "10", "marginType": "cross", "maxNotional": "1000000" }
Update leverage for a specific trading symbol.
Implementation Notes:
Platform-Specific Limits:
Unified market symbol
"BTC"
Target leverage value. Valid range depends on platform and position size (typically 1-125).
10
Margin type (cross or isolated)
cross
isolated
Leverage updated successfully
Trading symbol
Updated leverage value
Maximum notional value allowed at this leverage (if available)