Funding
Funding rates are an important rebalancing mechanism with which perpetuals markets track their underlying asset.
Perpetual contracts don’t expire, so to keep their prices in line with spot markets, we use a funding rate — a recurring payment between long and short traders. It’s designed to reduce price divergence between the perpetual and spot price.
When the perp price is higher than spot, longs pay shorts. When it’s lower, shorts pay longs. This creates an incentive for the market to rebalance itself.
Funding Calculation
Funding is calculated and applied at the start of every hour, based on two components:
A fixed interest rate of 0.00125% per hour (≈11.6% APR) which represents the cost to borrow spot
A Premium Index, which tracks how far perp prices deviate from spot
We sample the Premium Index every 5 minutes, then compute a time-weighted average (TWAP) over the hour to smooth out volatility.
Step 1: Premium Index ( P )
Impact Price: Simulated buy execution price based on an order with a predefined Impact Margin Notional (IMN)
Index Price: Spot price reference
This captures price dislocation and slippage pressure from either side of the book.
Step 2: Funding Rate ( F )
The hourly interest rate (I=0.00125%)
The first clamp limits the premium from diverging from the interest rate by ±0.00625% per hour
The second clamp keeps the final funding rate bounded within ±4% (~350% APR)
This ensures the funding rate stays within reasonable bounds, even during volatile periods.
Step 3: Funding Payment
If you’re holding a position at the funding time, the amount paid or received is:
The payment flows between longs and shorts depending on whether the funding rate is positive or negative.
Last updated