Sub topic 15
Futures and Perpetuals: Funding and Other Costs
Prerequisites and the Basic Model
Assume you understand spot trading, percentages, basis points, and the difference between an asset's price and its notional value. A futures contract is an agreement to gain or lose value from an asset's future price. A perpetual contract, or perp, is a futures-like contract with no expiry date.
Perpetuals use funding payments to keep their contract price near the spot price. Traders on one side pay traders on the other side at scheduled times. The exchange usually calculates the payment and transfers it between accounts.
Funding Payments
A simple estimate is:
funding payment = position notional × funding rate
Notional is the position's full market value, not the margin deposited. Suppose you hold a $10,000 long position and the funding rate is 0.01% every eight hours:
$10,000 × 0.0001 = $1
You pay $1 for that funding interval. If the rate stays the same for three intervals, the estimated cost is $3. A short position would receive that amount under the same positive rate.
Funding is variable. It can change when demand for longs or shorts changes. A rate that looks small per interval can become expensive when repeated for weeks. Annualized funding figures can also mislead because they assume the current rate persists.
| Cost | Usually based on | When it applies | Main risk |
|---|---|---|---|
| Trading fee | Order notional | Opening and closing | Fee tier or order type may differ |
| Funding | Position notional | Each funding interval | Rate can change |
| Spread and slippage | Execution price | Entry and exit | Thin liquidity worsens fills |
| Liquidation fee | Position or liquidation value | Forced close | Losses can exceed planned costs |
Other Derivatives Costs and Failure Modes
You normally pay a trading fee when opening and closing a position. The fee is often based on notional, so leverage does not reduce the fee for a fixed-size position. A larger position controlled with more leverage still has the same notional fee.
A market order can also pay the spread and cause slippage. These costs matter twice in a round trip: once when entering and once when exiting. A limit order may reduce the trading fee, but it might not fill, or it might fill only partially.
Liquidation is the forced closing of a position after losses reduce its margin below the exchange's maintenance requirement. Liquidation can add a fee, a worse execution price, and a loss of control. High leverage makes a small price movement more important because it is measured against a smaller margin balance.
Use isolated margin when you want to limit one position's collateral. Cross margin can keep a position open by using other available collateral, but it can expose more of your account to liquidation.
def funding_payment(notional, funding_rate, intervals):
"""Return the signed funding cost across several intervals."""
return notional * funding_rate * intervals
notional = 10_000
positive_cost = funding_payment(notional, 0.0001, 3)
negative_cost = funding_payment(notional, -0.0001, 3)
print(f"Long payment at +0.01%: ${positive_cost:.2f}")
print(f"Long payment at -0.01%: ${negative_cost:.2f}")Comparing a Perpetual Position
Before opening a position, estimate:
- The entry and exit trading fees.
- The spread and expected slippage on both trades.
- Funding for the expected holding period.
- The liquidation price and any liquidation fee.
- The effect of changing funding rates and position size.
A perpetual can appear cheaper than buying the asset with borrowed money, but that depends on funding, execution quality, and liquidation risk. Compare the full expected cost, not just the displayed commission.
Exercise
A trader holds a $5,000 short perpetual position for four eight-hour intervals. The funding rate is -0.02% per interval. What is the estimated funding result for the short?
Show answer
$5,000 × -0.0002 × 4 = -$4. The negative result means the short pays $4; under this sign convention, longs receive it.