Sub topic 12
Funding Rates in Perpetual Swaps
This chapter assumes you understand spot markets, basic order books, percentages, and the difference between a long and a short position. It also assumes you know that a perpetual swap is a futures-like contract with no expiry date.
Why funding exists
A perpetual swap has no expiry at which its price must meet the spot price. Without another mechanism, the swap could trade far above or below the asset it tracks.
A funding rate is a periodic payment exchanged directly between long and short traders. The exchange usually does not keep this payment. The rate encourages the perpetual price to stay near an index price, which is calculated from spot prices on one or more reference markets.
The usual interpretation is:
- A positive funding rate means longs pay shorts.
- A negative funding rate means shorts pay longs.
- The payment depends on position notional, not only on the margin deposited.
- Funding is separate from trading fees and profit or loss.
The exchange applies funding at scheduled times, such as every eight hours. The schedule, rate formula, and payment rules vary by venue.
Calculating a funding payment
For a simple position, calculate the position's notional value first:
\[ \text{notional} = \text{quantity} \times \text{mark price} \]
Then calculate:
\[ \text{funding payment} = \text{notional} \times \text{funding rate} \]
For a long, a positive result is a payment. For a short, the direction reverses.
def funding_payment(qty, mark_price, funding_rate, side):
"""Positive result means the trader pays; negative means the trader receives."""
notional = qty * mark_price
payment = notional * funding_rate
return payment if side == "long" else -payment
print(funding_payment(1.0, 60000, 0.0001, "long"))
print(funding_payment(1.0, 60000, 0.0001, "short"))The long pays 6 quote-currency units, while the short receives 6. A rate of 0.0001 means 0.01% for that funding interval. It is not automatically an annual rate.
| Position | Notional | Funding rate | Payment direction | Amount |
|---|---|---|---|---|
| Long 1 BTC at $60,000 | $60,000 | 0.01% | Pays | $6 |
| Short 1 BTC at $60,000 | $60,000 | 0.01% | Receives | $6 |
How the rate affects price behavior
When perpetual contracts trade above the spot index, demand for longs is often strong. The venue may set a positive rate, making longs more expensive to hold and shorts more attractive. This can reduce long demand or attract new shorts.
When perpetual contracts trade below the index, the rate may become negative. Shorts then pay longs, which can discourage short positions and attract buyers.
This mechanism is an incentive, not a price guarantee. Funding can remain positive during a strong rally, and it can remain negative during a severe decline.
Common errors
- Treating funding as guaranteed income. The rate can change before the next payment.
- Confusing the displayed rate with an annualized rate.
- Using entry price instead of the venue's funding or mark price.
- Ignoring funding when holding a leveraged position for many intervals.
- Assuming positive funding predicts a price increase. It mainly describes the current imbalance and the cost of positions.
Exercise
You hold a long position with $20,000 notional exposure. The funding rate is -0.02% for the interval. How much is the funding payment, and who pays whom?
Show answer
The payment is $20,000 × -0.0002 = -$4 for the long. The negative sign means the long receives $4 from shorts.