Hyperliquid Docs
  • About Hyperliquid
    • Core contributors
  • Onboarding
    • How to start trading
    • How to use the HyperEVM
    • Connect mobile via QR code
    • Export your email wallet
    • Testnet faucet
  • HyperCore
    • Overview
    • Bridge
    • API servers
    • Clearinghouse
    • Oracle
    • Order book
    • Staking
    • Vaults
      • Protocol vaults
      • For vault leaders
      • For vault depositors
    • Multi-sig
  • HyperEVM
    • Tools for HyperEVM builders
  • Hyperliquid Improvement Proposals (HIPs)
    • HIP-1: Native token standard
    • HIP-2: Hyperliquidity
    • HIP-3: Builder-Deployed Perpetuals
    • Frontend checks
  • Trading
    • Perpetual assets
    • Contract specifications
    • Margin tiers
    • Fees
    • Builder codes
    • Order book
    • Order types
    • Take profit and stop loss orders (TP/SL)
    • Margining
    • Liquidations
    • Entry price and pnl
    • Funding
    • Miscellaneous UI
    • Auto-deleveraging
    • Robust price indices
    • Self-trade prevention
    • Portfolio graphs
    • Hyperps
    • Market making
  • Validators
    • Running a validator
    • Delegation program
  • Referrals
    • Staking referral program
  • Points
  • Historical data
  • Risks
  • Bug bounty program
  • Audits
  • Brand kit
  • For developers
    • API
      • Notation
      • Asset IDs
      • Tick and lot size
      • Nonces and API wallets
      • Info endpoint
        • Perpetuals
        • Spot
      • Exchange endpoint
      • Websocket
        • Subscriptions
        • Post requests
        • Timeouts and heartbeats
      • Error responses
      • Signing
      • Rate limits
      • Bridge2
      • Deploying HIP-1 and HIP-2 assets
      • Deploying HIP-3 assets
    • HyperEVM
      • Dual-block architecture
      • Raw HyperEVM block data
      • Interacting with HyperCore
      • HyperCore <> HyperEVM transfers
      • Wrapped HYPE
      • JSON-RPC
    • Nodes
      • L1 Data Schemas
Powered by GitBook
On this page
  • Mainnet Margin Tiers
  • Testnet Margin Tiers
  1. Trading

Margin tiers

Like most centralized exchanges, the tiered leverage formula on Hyperliquid is as follows:

maintenance_margin = notional_position_value * maintenance_margin_rate - maintenance_deduction

On Hyperliquid, maintenance_margin_rate and maintenance_deduction depend only on the margin tiers, not the asset.

maintenance_margin_rate(tier = n) = (Initial Margin Rate at Maximum leverage at tier n) / 2 . For example, at 20x max leverage, maintenance_margin_rate = 2.5%.

Maintenance deduction is defined at each tier to account for the different maintenance margin rates used at previous tiers:

maintenance_deduction(tier = 0) = 0

maintenance_deduction(tier = n) = maintenance_deduction(tier = n - 1) + notional_position_lower_bound(tier = n) * (maintenance_margin_rate(tier = n) - maintenance_margin_rate(tier = n - 1)) for n > 0

In other words, maintenance deduction is defined so that new positions opened at each tier increase maintenance margin at maintenance_margin_rate , while having the total maintenance margin be a continuous function of position size.

Margin tables have unique IDs and the tiers can be found in the meta Info response.

Mainnet Margin Tiers

Mainnet margin tiers are enabled for the assets below:

BTC

Notional Position Value (USDC)
Max Leverage

0-150M

40

>150M

20

ETH

Notional Position Value (USDC)
Max Leverage

0-100M

25

>100M

15

SOL

Notional Position Value (USDC)
Max Leverage

0-70M

20

>70M

10

XRP

Notional Position Value (USDC)
Max Leverage

0-40M

20

>40M

10

DOGE, kPEPE, SUI, WLD, TRUMP, LTC, ENA, POPCAT, WIF, AAVE, kBONK, LINK, CRV, AVAX, ADA, UNI, NEAR, TIA, APT, BCH, HYPE, FARTCOIN

Notional Position Value (USDC)
Max Leverage

0-20M

10

>20M

5

OP, ARB, LDO, TON, MKR, ONDO, JUP, INJ, kSHIB, SEI, TRX, BNB, DOT

Notional Position Value (USDC)
Max Leverage

0-3M

10

>3M

5

Testnet Margin Tiers

The tiers on testnet are lower than mainnet would feature, for ease of testing.

LDO, ARB, MKR, ATOM, PAXG, TAO, ICP, AVAX, FARTCOIN - testnet only

Notional Position Value (USDC)
Max Leverage

0-10k

10

>10k

5

DOGE, TIA, SUI, kSHIB, AAVE, TON - testnet only

Notional Position Value (USDC)
Max Leverage

0-20k

10

20-100k

5

>100k

3

ETH - testnet only

Notional Position Value (USDC)
Max Leverage

0-20k

25

20-50k

10

50-200k

5

>200k

3

BTC - testnet only

Notional Position Value (USDC)
Max Leverage

0-10k

40

10-50k

25

50-100k

10

100k-300k

5

>300k

3

PreviousContract specificationsNextFees

Last updated 9 hours ago