# Funding Rate Methodology

# Funding Rate

Perpetual Futures on One Trading include a funding rate, a periodic payment exchanged between long and short position holders at the end of each funding period. Crypto perpetuals settle every 4 hours. Equity perpetuals settle during US core trading hours (09:30 to 16:00 New York time): twice on a normal trading day, at 12:45 and 16:00, and once at the close on an early-close day. This mechanism helps align the perpetual contract's price with the underlying asset's spot price. One Trading does not charge fees on the funding rate.

The funding rate consists of two components:

**Interest Rate Differential**: This component reflects the difference in interest rates between the base currency (the traded asset, e.g., BTC) and the quote currency (e.g., USD). For example, in a BTC/USD perpetual futures contract, if the USD interest rate is higher than BTC's (which typically has no yield), the long position holder pays this differential to the short position holder. This is because the long position is effectively borrowing USD (high interest rate) to gain BTC exposure (no/low interest rate). The interest rate component helps keep futures prices aligned with spot prices by accounting for the cost of holding positions.

**Premium Index**: This represents the difference between futures and spot prices. When futures trade at a premium, the long position pays funding to the short position, encouraging more shorts and fewer longs, thus converging prices. Conversely, when futures trade at a discount, the short position pays funding to the long position. This self-correcting mechanism maintains alignment between futures and spot prices.

## Methodology

### Interest Component

Set as a yearly percentage per market and converted to the funding period using the formula:

```text
r = (1 + R)^(1/n) − 1        n = (days in year × 1440) / pd
```

Where: *r* is the period rate, *R* is the annual interest rate, *n* is the number of funding periods per year, and pd is the funding period length in minutes.

### Premium Index
Given the Mark Price and Index Price, the premium index *P* series is calculated every 1 minute using the following equation:

```text
     Mark Price − Index Price
P = ──────────────────────────
           Index Price
```

where the Index Price is the weighted average spot price of the underlying asset listed on major spot exchanges.

#### Time-Weighted Average Premium Index

The time-weighted average premium index *P̄* is calculated over the funding period using the premium index series:

```text
      Σ (w₀ + α·t) · Pₜ
P̄ = ───────────────────        both sums over t = 0 … T − 1
       Σ (w₀ + α·t)
```

where *Pₜ* denotes the *t*-th 1-minute observation of *P* in the funding period, counting the first as *t* = 0, and *w₀* + *αt* is its weight (with *w₀* being the starting weight and *α* being the scalar step increase). T is the number of 1-minute observations in the period, normally 240 for a 4-hour period. Weight therefore increases linearly through the period. With *w₀* = 0 and *α* = 1, the first observation has weight 0 and the last has weight *T* − 1.

### Funding Rate Calculation

The preliminary funding rate is calculated as:

```text
fr = (pd / 480) × [ P̄ + clamp(r′ − P̄, −β, β) ]        r′ = r × 480 / pd
```

where *β* is the clamp boundary parameter (e.g., 0.05%), *r* is the period interest rate from the Interest Component above, and *r′* is that rate quoted on the same 8-hour basis as the premium.

The clamp function ensures a value stays within a specified range by limiting it to the nearest boundary if it would go outside that range:

```text
                     ┌ min   if x < min
clamp(x, min, max) = ┤ x     if min ≤ x ≤ max
                     └ max   if x > max
```

Clamping ensures that the adjustment *r′* − *P̄* stays within −*β* and +*β*. This means:
- If *r′* − *P̄* is less than −*β*, it will be set to −*β*
- If *r′* − *P̄* is between −*β* and +*β*, it will remain unchanged
- If *r′* − *P̄* is greater than +*β*, it will be set to +*β*

As a result, the dead band is centred on the interest rate. While the time-weighted premium is within ±β of *r′*, the funding rate is exactly the period interest rate *r*. Outside that range the funding rate is the premium less β, and the interest is not charged on top. 

The bracket is then scaled by pd / 480, which quotes it on an 8-hour basis. The premium index is an average rather than an accumulation, so without this scaling the daily funding from a steady premium would grow with the number of settlements per day. With the scaling, it is the same whatever the period length. A 4-hour period has a factor of 0.5. Because the interest enters the bracket as *r′*, the scaling returns it to *r*.

Finally, a cap is applied to the funding rate to determine the final funding rate:

```text
Final Funding Rate = max(−τ, min(fr, τ))
```

where *τ* is the maximum absolute value allowed for the funding rate, ensuring the rate stays within reasonable bounds.


## Funding Rate Settings

All markets currently use the same parameters. The two columns differ only in their funding period length.

| Parameter | Symbol | Description | Crypto (e.g. BTC_USD_P) | Equity (e.g. TSLA_USD_P) | Unit |
|-----------|--------|-------------|-----------|-----------|------|
| **Instrument** | *i* | Instrument code | BTC_USD_P | TSLA_USD_P | - |
| **Annual Interest Rate** | *R* | Yearly interest rate | 4.00% | 4.00% | % p.a. |
| **Period Interest Rate** | *r* | Calculated period rate¹ | 0.001791% | 0.001455%² | % per period |
| **Funding Period** | pd | Duration of funding cycle | 240 | 195² | minutes |
| **Funding Periods/Year** | *n* | Number of periods per year¹ | 2,190 | 2,695² | periods |
| **Premium Scaling** | pd / 480 | Scaling of the premium part to an 8-hour basis | 0.5 | 0.40625² | - |
| **Starting Weight** | *w₀* | Time-weighted starting weight | 0 | 0 | - |
| **Alpha Parameter** | *α* | Time-weighted step increase | 1 | 1 | - |
| **Clamp Threshold** | *β* | Dampening clamp boundary | ±0.05% | ±0.05% | % |
| **Funding Rate Cap** | *τ* | Maximum absolute funding rate | ±0.10% | ±0.10% | % |

¹ For a 365-day year.

² Equity funding periods follow the US market calendar. A normal 6.5-hour trading day is split into two 195-minute periods: 09:30 to 12:45 and 12:45 to 16:00 New York time. On an early-close day (09:30 to 13:00, for example the day after Thanksgiving and Christmas Eve), the session is a single 210-minute period, with *r* = 0.001567%, *n* = 2,503 and a premium scaling of 0.4375. Funding is only calculated within these periods; no funding accrues outside core trading hours.