Skip to main content

Documentation Index

Fetch the complete documentation index at: https://hypernode-docs.polynode.dev/llms.txt

Use this file to discover all available pages before exploring further.

Each perpetual asset on HyperLiquid references a margin table that defines its leverage tiers. As position size grows, maximum leverage steps down.

Endpoint

GET /v2/margin-table?id={table_id}
ParamRequiredDescription
idNoMargin table ID (default: 56, which is BTC’s table)

How margin table IDs work

  • ID below 50: Simple single-tier. The ID equals the max leverage. For example, id=5 means flat 5x leverage with no size-based reduction.
  • ID 50+: Tiered tables with position-size-based leverage reduction.
Find an asset’s margin table ID in the meta response under marginTableId.

Response

{
  "description": "tiered 40x",
  "marginTiers": [
    {"lowerBound": "0.0", "maxLeverage": 40},
    {"lowerBound": "150000000.0", "maxLeverage": 20}
  ]
}
FieldTypeDescription
descriptionstringHuman-readable label (empty for simple tables)
marginTiersarrayOrdered tiers. Each tier applies from lowerBound notional upward
marginTiers[].lowerBoundstringMinimum notional position size (USD) for this tier
marginTiers[].maxLeveragenumberMaximum leverage allowed at this tier
Maintenance margin is 50% of the initial margin rate at each tier’s max leverage.

Common tables

IDDescriptionTiers
55x flat5x at all sizes
1010x flat10x at all sizes
2020x flat20x at all sizes
51tiered 10x10x up to $3M, then 5x
55tiered 25x25x up to $100M, then 15x
56tiered 40x40x up to $150M, then 20x (BTC, ETH)

Example

# BTC margin table
curl -H "x-api-key: YOUR_KEY" "https://hyper.polynode.dev/v2/margin-table?id=56"

# Simple 5x table
curl -H "x-api-key: YOUR_KEY" "https://hyper.polynode.dev/v2/margin-table?id=5"