Go to app

How does Hyperliquid funding work?

Published 11/26/2026, 12:10:19 AM

Answer

Hyperliquid funding is a peer-to-peer periodic payment between longs and shorts that keeps each perpetual contract's price anchored to its underlying spot (oracle) price. The exchange takes no fee on it — the money flows directly between traders. Here's how it works, based on Hyperliquid's official docs and corroborating third-party analyses.

The core mechanics

1. Payment interval. Funding is paid every hour. Hyperliquid computes an 8-hour funding rate and then charges one eighth of it each hour. (Sources: Hyperliquid docs, Ironflow)

2. The formula. The official formula is:

Funding Rate (F) = Average Premium Index (P) + clamp(interest rate − P, −0.0005, +0.0005)

It has two components:

  • Premium index (P): how far the perp trades from the oracle price. It's sampled every 5 seconds and averaged over the hour. Computed as premium = impact_price_difference / oracle_price, where impact_price_difference = max(impact_bid_px − oracle_px, 0) − max(oracle_px − impact_ask_px, 0). The impact bid/ask prices are the average execution prices to trade a fixed "impact notional" on each side of the book — so it measures a real fill price, not just the top of book.
  • Interest rate (I): fixed at 0.01% per 8 hours (0.00125% per hour, ≈11.6% APR), representing the cost of borrowing USD vs. spot crypto. It's paid by longs to shorts.

The clamp(..., −0.0005, +0.0005) term limits how much the interest component can deviate from the premium, so the interest term only meaningfully matters when the premium is near zero. (Sources: Hyperliquid docs, Quicknode, Blockmetric)

3. Who pays whom. When the perp trades above the oracle (positive premium), funding is positive and longs pay shorts. When it trades below the oracle, funding is negative and shorts pay longs. This incentivizes traders to take the opposite side and pull the contract price back toward spot. (Source: Hyperliquid docs)

4. The payment amount. At the end of each interval, the payment is:

position_size × oracle_price × funding_rate

Note the oracle price (not the mark price) is used to convert position size into notional value. (Source: Hyperliquid docs)

5. The cap. Funding is capped at 0.5% per hour for every asset — the docs note this is "much less aggressive capping than CEX counterparts." The cap and interval don't depend on the asset. (Source: Hyperliquid docs)

Worked example (from the official docs)

With interest = 0.01%, impact bid = $10,100, spot = $10,000, and a long of 10 BTC:

  • Premium = ($10,100 − $10,000) / $10,000 = 1%
  • Clamped difference = clamp(0.01% − 1%, −0.05%, +0.05%) = −0.05%
  • Funding rate = 1% + (−0.05%) = 0.95% (per 8 hours; one eighth, ~0.119%, charged hourly)

A note on the cap discrepancy

There's a small inconsistency across sources worth flagging: the official docs state the cap is 0.5%/hour, and several independent guides (Prowdex, HypeBasis) agree. However, a few third-party articles (Hydromancer, hyperliquids.at) cite a 4% per hour cap. The official documentation is the authoritative source here, so 0.5%/hour is the correct figure; the 4% figure appears to be an error or outdated in those secondary sources. I'd treat 0.5%/hour as the reliable number.

Practical takeaways

  • Baseline behavior: when the perp trades near spot, funding settles at the interest baseline of ~0.00125%/hour, paid by longs to shorts.
  • Signal use: funding is a carry signal — persistently high positive funding suggests crowded longs and can signal a squeeze risk, while negative funding reflects short crowding. But as datastore.sh cautions, funding history contains mechanics that can masquerade as signal, so it should be validated before being used in a model.
  • Data access: settled hourly rates are available via the fundingHistory endpoint (500 rows per response), current/next rates via metaAndAssetCtxs and predictedFundings, and per-wallet payments via userFunding. (Source: Ironflow)

Bottom line: Hyperliquid funding is an hourly, peer-to-peer payment equal to position_size × oracle_price × (average premium + clamped interest term), capped at 0.5%/hour, designed to keep perp prices aligned with spot. The premium (sampled every 5s, averaged hourly) is the main driver; the fixed 0.01%/8h interest term only matters when the premium is near zero.