Unified REST APIAccount

Update Position Leverage

Update leverage for a specific trading symbol.

Platform Support: Available on hyperliquid, aster, lighter. Not available on kuru (spot DEX - no leverage).

Implementation Notes:

  • Leverage must be adjusted before opening positions or when no position exists
  • Some platforms restrict leverage changes when positions are open
  • Maximum allowed leverage varies by symbol and account tier
  • Leverage reduction may be restricted in isolated margin mode with open positions

Platform-Specific Limits:

  • Hyperliquid: Asset and notional-dependent (varies by margin tiers; e.g., BTC up to 40x, ETH up to 25x)
  • Aster: 1-125 depending on position size and notional brackets, and it is unable to adjust to isolated-margin mode under the Multi-Assets mode.
  • Lighter: 1-100 (varies by market)
POST
/updateLeverage

Authorization

ApiKeyAuth
X-API-KEY<token>

In: header

Request Body

application/json

symbol*stringrequired

Unified market symbol

Example: BTC
leverage*numberrequired

Target leverage value. Valid range depends on platform and position size (typically 1-125).

Example: 10
marginType*enum<string>required

Margin type (cross or isolated)

Available options: crossisolated

Response Body

application/json

curl -X POST "https://api.hypereth.io/v2/hyperliquid/updateLeverage" \  -H "Content-Type: application/json" \  -d '{    "symbol": "BTC",    "leverage": 10,    "marginType": "cross"  }'
{
  "symbol": "BTC",
  "leverage": "10",
  "marginType": "cross",
  "maxNotional": "1000000",
  "dexReceivedTimestamp": 1710010900000,
  "hyperethTimestamp": 1710011000000
}