HyperLiquid’s funding rate system keeps perpetual contract prices aligned with their underlying spot prices. It combines an on-chain oracle system, configurable mark price calculation, and per-perp funding parameters.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.
Oracle system
The oracle layer provides price feeds for all assets on the exchange. Oracles are classified by theOracleKindMap into three modes:
| Oracle Kind | Description |
|---|---|
Open | Continuously updated oracle. Validators publish prices every ~3 seconds, computed as a weighted median across external exchanges (Binance weight 3, OKX 2, Bybit 2, Kraken 1, Kucoin 1, Gate IO 1, MEXC 1, HL spot 1). The final oracle price is the stake-weighted median of validator submissions. |
Queue | Queued delivery oracle. Price updates are batched and applied in sequence, used for assets where atomic price updates could create extraction opportunities. |
Round | Round-based oracle with discrete update windows. Prices update at fixed intervals rather than continuously, suitable for assets with lower liquidity or update frequency requirements. |
Mark price calculation
The mark price is the reference price used for funding rate computation and liquidation triggers. It is derived from a combination of:- Oracle price — the external reference price for the underlying asset
- Spot price inputs — on-chain spot market prices where available
- External perp prices — prices from external perpetual exchanges for cross-referencing
- Order book mid-price — the current mid-market price on HyperLiquid
Impact USD
The funding rate calculation uses an impact USD parameter that determines the notional size used when sampling the order book for the premium/discount calculation:impact_usd value smooths out the funding rate by sampling deeper into the order book, while a smaller value makes funding more responsive to thin liquidity at the top of book.
Impact USD is conceptually similar to Binance’s “Impact Margin Notional” — it represents the notional value used to calculate the bid/ask impact prices that determine the premium index.
Funding rate formula
HyperLiquid supports two funding rate formulas:Default formula
The standard funding rate is calculated as:clamp limits the maximum funding rate per period to prevent extreme values. On most exchanges with similar mechanisms, the clamp is typically set to 0.05% (5 basis points) per 8-hour interval, though HyperLiquid’s specific clamp values are governance-configurable per asset.
Example calculation:
Settlement frequency
Funding is settled every hour at one-eighth of the computed 8-hour rate. The formula calculates an 8-hour funding rate, but payments are distributed hourly in equal installments. For example, a 0.05% 8-hour rate results in ~0.00625% paid each hour.Binance formula option
HyperLiquid can optionally use the Binance funding formula for specific perps:Per-perp funding parameters
Each perpetual market has individually configurable funding parameters:Funding multipliers
Interest rates
HL-only perps
Some perpetual markets exist only on HyperLiquid without an external reference price:Funding distribution
Funding payments are distributed between longs and shorts based on the calculated rate. The distribution process is rate-limited by guard mechanisms:Distribution guards
The three guards serve distinct purposes:| Guard | Purpose |
|---|---|
funding_distribute_guard | Controls how frequently funding payments are settled to user accounts |
funding_update_guard | Controls how frequently the funding rate itself is recalculated |
funding_err_dur_guard | Tracks and rate-limits error conditions during funding calculation |
Per-block execution data
Each block produces several data outputs relevant to funding:hip3_oracle_updates field is particularly relevant for HIP-3 deployed tokens that use deployer-managed oracle feeds rather than the protocol’s built-in oracle system.