How Is a TWAP Used in Calculating the ‘Funding Rate’ of a Perpetual Swap?

The funding rate in a perpetual swap is a periodic payment between the long and short sides, designed to keep the contract's price (mark price) anchored to the underlying asset's spot price (index price). A Time-Weighted Average Price (TWAP) of the index price is often used to calculate the funding rate to prevent temporary price spikes from causing wild swings in the payment.

This ensures the rate is based on a stable, fair representation of the underlying market.

What Are the “Greeks” in Options Trading and Which Is Most Affected by Volatility?
How Does an Exchange Ensure Fair Pricing for Its Perpetual Contracts?
What Is the Difference between Mark Price and Index Price in Derivatives Trading?
What Is the Difference between the Premium Index and the Funding Rate?
What Is the Role of Time-Weighted Average Price (TWAP) in DeFi Oracles?
Which Options Are Most Affected by Theta Decay: Short-Term or Long-Term?
What Is a “Perpetual Future” and How Does TWAP Relate to Its Funding Rate?
What Is the Role of ‘Index Price’ in the Calculation of the Funding Rate for a Perpetual Contract?

Glossar