Funding Fees are cash flows that are periodically exchanged between traders holding long positions and traders holding short positions. Those cash flows are based on a Funding Rate. This aims to ensure the Futures price closely follows the underlying asset price (ie the Index Price). In Orderly, the funding fee is accrued every 8 hours at 00:00 UTC, 08:00 UTC, and 16:00 UTC for all Orderly perpetual contracts.

The Funding rate is determined by two components: the Premium and the Interest Rate.

Premium calculation

The Funding Rate is determined mainly by the Premium, which measures the deviation between the Futures price and the Index Price (ie the Basis). In order to avoid manipulation, Orderly uses Impact Bid and Ask prices, rather than the highest bid and lowest ask only.

  • The Impact Bid Price represents the average fill price to execute a sell order with the size of the Impact Margin Notional.

  • The Impact Ask Price represents the average fill price to execute a buy order with the size of the Impact Margin Notional.

  • The Impact Margin Notional is the notional available to trade with 1,000 USDC of collateral at the maximum leverage of the specific market. For example, for NEAR-USDC, the maximum leverage is 10x, so Impact Margin Notional is 10,000 USDC.

Every 15 seconds, Orderly computes the Premium index according to the following formula:

Premium = [Max(0, Impact Bid Price - I) - Max(0, I - Impact Ask Price)] / I

I = Index Price

Piecewise linear funding rate function

For each funding period of 8 hours, Orderly calculates the Premium every 15 seconds. The number of Premium points is therefore N = 1,920 points. An Average Premium is then computed:

Average Premium = (Premium_1 + Premium_2 + ... + Premium_N) / N

Once the Average Premium for the funding period has been computed, a funding piecewise linear function with three regions is applied to the Average Premium

The Funding Function is defined as follows to allow for faster convergence in case the prices deviate significantly:

Funding Function(x) =
  x , if |x| < 0.5%
  0.5%  * sign(x) + (x - 0.5% * sign(x)) * 2, if 0.5% < |x| < 1.5%
  [0.5% + (1.5% - 0.5%) * 2] * sign(x) + (x - 1.5% * sign(x)) * 4, if |x| > 1.5%

NB: x refers here to the Average Premium
PremiumRangeSlope
Low|x| < 0.5%1
Medium0.5% < |x| < 1.5%2
Large1.5% < |x|4

Interest Rate

To this funding function, we add the second component of the funding rate which is the Interest Rate. By definition, it is equal to:

Interest Rate = (USDC Interest - Underlying Base Asset interest) / Funding Interval

The Interest Rate is fixed to be 0.01% for all Perpetual Markets (assuming USDC interest of 0.06%, Asset interest rate equal to 0.03%). Orderly reserves the right to adjust the Interest Rate depending on market conditions.

Final Funding Rate

The final Funding Rate is then a combination of the Average Premium and the Interest Rate.

Funding Rate = clamp[Funding Function(Average Premium) + clamp(Interest Rate - Funding Function(Average Premium) , Cap IR, Floor IR), Cap Funding, Floor Funding]

The funding rate is also capped and floored respectively by a Cap Funding and a Floor Funding. The specific values depend on each perpetual market. In the event of extreme market conditions, Orderly may change these parameters, which will enable the funding rate model’s higher slope to kick in.

Perp MarketCap FundingFloor FundingCap IRFloor IR
BTC0.3%-0.3%0.03%-0.03%
ETH0.375%-0.375%0.03%-0.03%
ARB0.45%-0.45%0.01%-0.01%
WOO2.00%-2.00%0.01%-0.01%
LINK0.375%-0.375%0.01%-0.01%
OP0.45%-0.45%0.01%-0.01%
SOL0.4875%-0.4875%0.01%-0.01%
SUI0.75%-0.75%0.01%-0.01%
TIA4.00%-4.00%0.02%-0.02%
INJ3.00%-3.00%0.01%-0.01%
AVAX0.3750%-0.375%0.01%-0.01%
JUP4.00%-4.00%0.02%-0.02%
ORDI4.00%-4.00%0.02%-0.02%
APT0.3750%-0.375%0.01%-0.01%
BLUR2.00%-2.00%0.01%-0.01%
WLD0.75%-0.75%0.01%-0.01%
STRK4.00%-4.00%0.02%-0.02%
SEI2.00%-2.00%0.01%-0.01%
DYM4.00%-4.00%0.02%-0.02%
ETHFI4.00%-4.00%0.02%-0.02%
FTM0.45%-0.45%0.01%-0.01%
ENA4.00%-4.00%0.02%-0.02%
W4.00%-4.00%0.02%-0.02%
WIF4.00%-4.00%0.02%-0.02%
ZEUS1.50%-1.50%0.01%-0.01%
OMNI4.00%-4.00%0.02%-0.02%
MERL1.50%-1.50%0.01%-0.01%
ONDO4.00%-4.00%0.02%-0.02%
AR2.00%-2.00%0.01%-0.01%
FIL0.45%-0.45%0.01%-0.01%
NOT4.00%-4.00%0.02%-0.02%
MEW4.00%-4.00%0.02%-0.02%
BOME4.00%-4.00%0.02%-0.02%
1000PEPE2.00%-2.00%0.01%-0.01%
1000BONK4.00%-4.00%0.02%-0.02%
TON4.00%-4.00%0.02%-0.02%
1000FLOKI3.00%-3.00%0.01%-0.01%
STG3.00%-3.00%0.01%-0.01%
PEOPLE2.00%-2.00%0.01%-0.01%
BRETT2.00%-2.00%0.01%-0.01%
CHZ4.00%-4.00%0.02%-0.02%
IO4.00%-4.00%0.02%-0.02%
ZK4.00%-4.00%0.02%-0.02%
PONKE1.50%-1.50%0.01%-0.01%
ZRO4.00%-4.00%0.02%-0.02%
POPCAT3.00%-3.00%0.01%-0.01%
MKR0.045%-0.045%0.02%-0.02%
AAVE1.125%-1.125%0.01%-0.01%
CRV3.00%-3.00%0.01%-0.01%
LDO0.45%-0.45%0.01%-0.01%
TRX0.4875%-0.4875%0.01%-0.01%
ORDER4.00%-4.00%0.02%-0.02%
DOGS4.00%-4.00%0.01%-0.01%
POL0.45%-0.45%0.01%-0.01%
TAO4.00%-4.00%0.01%-0.01%
EIGEN4.00%-4.00%0.02%-0.02%
MOODENG4.00%-4.00%0.02%-0.02%
1000SHIB0.04875%-0.04875%0.01%-0.01%
1000APU4.00%-4.00%0.01%-0.01%
GOAT4.00%-4.00%0.02%-0.02%
MOG2.00%-2.00%0.01%-0.01%

Funding Period

The Funding Period for Orderly is dt = 8 hours. The Funding Rate is expressed on an 8-hour basis.

Accrued Funding

Every 8 hours, a position on a Perpetual Futures contract will accrue the following funding:

Accrued Funding(dt) = Position Size * Mark Price * Funding Rate

Funding settlement

The accrued funding of an account’s position is settled when a PNL settlement is being called on that account (see PNL settlement).