Appearance
Funding
Overview
Perpetual futures have no expiry date, so a periodic funding mechanism aligns the contract price with the underlying oracle price. Funding is settled hourly in a peer-to-peer fashion. When funding is positive, longs pay shorts; when it is negative, shorts pay longs.
Calculation
Premium Rate
Each minute, a premium rate is sampled from the orderbook. Impact bid and impact ask prices are computed by walking each side of the book until a configurable notional quantity (the impact quantity) is exhausted. The premium rate is then:
Premium TWAP
Premium samples are accumulated into a time-weighted average price (TWAP) over the one-hour funding period.
Funding Rate
At the top of each hour, the funding rate is derived from the premium TWAP. The TWAP is dampened by a factor of 8, a base rate of 0.01% is added, and the result is clamped:
The dampening factor distributes the hourly premium signal across an 8-hour window, smoothing funding costs for participants. The base rate introduces a small bias toward longs paying shorts, reflecting the cost-of-carry of the underlying asset.
Note: Funding is capped at 5% in either direction, as per the clamp in the above formula.
Funding Payment
Each account's funding payment per period is:
A positive funding rate means longs pay shorts; a negative rate means shorts pay longs.