Funding
Funding rates are a critical mechanism in crypto perpetual contracts, ensuring that the perpetual contract price remains closely aligned with the underlying asset's spot price. On Hyperliquid, funding is designed to be peer-to-peer, transparent, and reflective of real market conditions.
Overview of Funding 📈
Peer-to-Peer Payments: Funding involves direct payments between traders—longs pay shorts or vice versa. The platform does not collect any fees from these payments.
Hourly Settlements: Funding is accrued and paid every hour, providing consistent adjustments to the market.
Base Interest Rate + Premium: The funding rate is computed as the sum of:
A fixed interest rate of 0.01% every 8 hours applies, representing the cost difference between borrowing USD or cryptocurrencies. This corresponds to approximately 0.00125% per hour and an APR (Annual Percentage Rate) of ~11.6%.
A premium/discount component, which reflects the difference between the perpetual contract price and the oracle-derived spot price of the asset.
Funding Rate Calculation 🧮
The funding rate formula is:
Premium Index (P): Reflects the difference between the impact price (calculated using order book depth) and the oracle price.
Sampling: The premium is sampled every 5 seconds and averaged over the hour
Clamp: Limits extreme differences between the interest rate and the premium index.
Impact Price Calculation:
Where:
impact_bid_px / impact_ask_px = Average execution prices to trade a specified notional amount on the bid and ask sides.
oracle_px = Weighted median of prices submitted by validators, ensuring accuracy and robustness.
Key Points 💡
Oracle-Driven Calculations: The spot oracle price, derived from a weighted median of validator submissions, is fundamental in calculating the funding rate. Validators’ weights depend on their stake and the liquidity of the CEX they monitor.
Funding Impact Notional: The impact notional used for funding calculations depends on the asset:
20,000 USDC for BTC and ETH.
6,000 USDC for all other assets.
For example, a 50,000 USDC BTC position pays funding only on the first 20,000 USDC.
Caps on Funding Rates: Funding on Hyperliquid is capped at 4% per hour, a much less aggressive cap than many centralized exchanges.
Payments Formula: Funding payments are settled as:
The oracle price, not the mark price, is used to calculate the notional value for funding payments.
Example Calculation 📝
Scenario:
Interest Rate = 0.01%
Impact Bid Price = $10,100
Spot Oracle Price = $10,000
Position Size = 10 contracts (each representing 1 BTC)
Step 1: Calculate Premium Index (P):
Step 2: Clamp the Difference:
Step 3: Calculate Funding Rate (F):
Step 4: Compute Payment:
Why Funding Matters 🔗
Funding incentivizes traders to take positions that align the perpetual price with the spot price. This price convergence mechanism maintains a stable and fair trading environment for all participants. Hyperliquid's funding model closely mirrors centralized exchanges but adds decentralization and transparency, making it uniquely robust.
Last updated