Skip to content

Funding Fee

Funding Fee is charged while a perpetual contract position is held. It is calculated from the position’s notional value, the applicable hourly rate, and the billable duration.

This rule applies to crypto and US equity perpetual contracts. The markets use the same base rate and billing method, while their market funding rates may differ.

The platform divides a position into holding segments when the position changes. The current segment uses the latest applicable rate. When an increase, decrease, or close ends a segment, that segment’s fee is fixed and no longer changes with later rate updates.

Funding Fee is collected only when a position is decreased, closed, or force-liquidated. Uncollected fees reduce isolated equity and are included in liquidation checks.

The market funding rate reflects the premium or discount of a perpetual contract against its reference asset price. It is formed from an interest component and a premium component.

The market funding rate may be positive, negative, or zero. The platform uses its sign and the position direction to calculate the user’s applicable hourly rate.

The following describes the standard market-rate construction. A specific market may use another premium algorithm or parameter without changing the platform billing rules in section 3.

The standard interest component is 0.01% every 8 hours, equivalent to:

Hourly interest equivalent
= 0.01% / 8
= 0.00125% per hour

This component represents the holding-cost difference between the quote currency and the underlying asset and participates in the market funding-rate calculation.

It is different from the platform’s 5% annualized base rate. The interest component is already included in the market funding rate; the base annualized rate is added separately when the position’s applicable rate is calculated.

The premium index measures the price deviation of the perpetual contract from the oracle price of its underlying asset. The standard formula is:

Impact price difference
= max(impact bid price − oracle price, 0)
− max(oracle price − impact ask price, 0)

Premium index
= impact price difference / oracle price

Under the standard method, the premium index is sampled every 5 seconds and averaged over one hour. The oracle price here is used to calculate the premium index; it is not the execution price used to determine the Funding Fee notional value in section 4.

Let P̄ be the hourly average premium index, I be the 8-hour interest component (0.01% by default), and f₈ be the 8-hour market funding rate.

f₈
= P̄ + clamp(I − P̄, −0.05%, 0.05%)

clamp(x, a, b)
= min(max(x, a), b)

Market hourly funding rate f
= f₈ / 8

clamp limits the adjustment term to −0.05% through 0.05%. The limit applies to the adjustment term, not to the final market funding rate. The f used in platform fee calculations is already hourly and is not divided by 8 again.

Some markets use a more responsive premium calculation:

Premium index
= 0.5 × (impact bid price + impact ask price) / oracle price − 1

Those markets may also use different interest parameters or funding-rate multipliers. Regardless of how a market rate is formed, the platform takes that market’s final hourly funding rate as input and applies the same base-rate, direction, and holding-segment rules.

Assume the standard formula is used, the hourly average premium index is 1%, the interest component is 0.01%, and the result does not reach the applicable market limit:

Adjustment
= clamp(0.01% − 1%, −0.05%, 0.05%)
= −0.05%

8-hour market funding rate
= 1% − 0.05%
= 0.95%

Market hourly funding rate
= 0.95% / 8
= 0.11875% per hour

f = 0.0011875

This is the market hourly funding rate. The base rate and position direction must still be applied to obtain the user’s applicable hourly rate.

All long and short positions use a 5% annualized base rate, converted using 365 days per year and 24 hours per day. The base rate applies to position notional value, not the isolated margin deposited by the user.

Base hourly rate b
= 5% / (365 × 24)
≈ 0.000570776% per hour

b = 0.00000570776

Let f be the market hourly funding rate and r be the position’s applicable hourly rate:

Long:
r = b + max(f, 0)

Short:
r = b + max(−f, 0)

When the market rate is positive, longs use that market rate in addition to the base rate. When it is negative, shorts use its absolute value in addition to the base rate. The other direction uses only the base rate. A positive or negative market rate does not mean that the user receives funding income or a credit.

The platform fetches the latest market funding rate every 30 minutes. A rate update does not create a new holding segment or restart its timer. All billable hours in the current segment are recalculated with the latest applicable hourly rate; completed segments with fixed fees are unchanged. Current-segment fees therefore depend on both holding time and the latest rate and may decrease when the rate falls.

If fetching the market rate fails or the rate is more than 8 hours past its publication time, the market rate is treated as zero. The current segment then uses only the base hourly rate, while fixed historical fees remain unchanged. The 8-hour data lifetime, 30-minute fetch interval, and hourly billing unit are separate rules and should not be treated as one settlement cycle.

f = 0
r = b

The billing notional value of each holding segment is V:

V
= total position quantity when the segment is created × execution price of that operation

Quantity uses the underlying asset’s quantity unit. A new segment’s notional value remains fixed during that segment and does not follow the live market price. Earlier segments retain their original notional values.

Open 1 BTC at 100,000 USDC:
Segment 1 notional = 1 × 100,000 = 100,000 USDC

Add 1 BTC at 110,000 USDC:
Segment 2 notional = 2 × 110,000 = 220,000 USDC

Reduce 0.5 BTC at 120,000 USDC:
Segment 3 notional = 1.5 × 120,000 = 180,000 USDC

The platform creates a segment for each open, increase, decrease, or close operation. Each new segment records the total position quantity and execution price after that operation and has its own start time.

Each segment starts its own timer and rounds its duration up independently to a whole hour:

hᵢ
= ceil(segment i duration in seconds / 3,600)

ceil means round up. Timing is not aligned to calendar-hour boundaries.

Every increase or decrease creates a new segment, and each segment is rounded up separately. For example, if a position opens at 10:00, increases at 10:10, and closes at 10:20:

Segment 1: 10:00–10:10, billed as 1 hour
Segment 2: 10:10–10:20, billed as 1 hour

Although the total holding time is 20 minutes, fees are calculated for the two segments separately. Frequent increases and decreases can therefore increase billable hours.

Current-segment fee
= current-segment notional × latest applicable hourly rate × current-segment billable hours

The latest applicable rate is used for all billable hours in the current segment; historical rates within that segment are not accumulated separately.

When an increase, decrease, or close ends the current segment, the platform calculates the entire segment with the latest applicable rate at the time of the operation and fixes that amount:

Final fee for segment i, Fᵢ
= Vᵢ × rᵢ,end × hᵢ

After a segment ends, later rate changes do not change its fee.

Let H be fixed historical-segment fees that have not yet been collected:

Pending Funding Fee
= H + current-segment fee

Collected fees are not included again in the pending amount.

When a position increases, the old segment is fixed and added to historical pending fees, but no money is collected. A new segment is then created from the increased total quantity and the execution price of the operation, and its timer starts at that operation.

When a position decreases, the current segment is fixed first. A proportional part of all pending fees is then collected. Let T be pending fees after fixing the current segment and α be the decrease ratio:

α = quantity decreased / position quantity before decrease

Funding Fee collected now = T × α
Remaining historical pending fees = T × (1 − α)

The remaining historical pending fees stay fixed. A new segment is created after the decrease and its fee is calculated separately.

On a full close, the final segment is fixed and all pending Funding Fee is collected:

Funding Fee collected on close
= historical pending fees + final fee of the last segment

A partial liquidation collects pending Funding Fee in proportion to the liquidated quantity relative to the position quantity before liquidation. A full liquidation collects all pending Funding Fee.

Pending fees continue to be calculated while a position is held, but are not collected periodically. An increase also does not collect them. Actual collection occurs on a decrease, close, or force liquidation. A rate update or an additional billable hour does not itself trigger collection.

All amounts below are in USDC. Calculations retain full precision; the frontend rounds displayed amounts to four decimal places.

Assume a billing notional of 40,000 USDC, a market hourly funding rate of 0.00005, and 5 billable hours.

Long:
Applicable hourly rate = 0.00000570776 + 0.00005 = 0.00005570776
Funding Fee = 40,000 × 0.00005570776 × 5 = 11.141552 USDC
Displayed: 11.1416 USDC

Short:
Funding Fee = 40,000 × 0.00000570776 × 5 = 1.141552 USDC
Displayed: 1.1416 USDC

If the market hourly rate is −0.00003, the short uses 0.00003 in addition to the base rate and the long uses only the base rate.

8.2 Fixing an earlier segment after an increase

Section titled “8.2 Fixing an earlier segment after an increase”

Assume a long position increases at 10:10. The first segment lasted 10 minutes and is billed as one hour. At 10:20, the second segment also lasted 10 minutes and is billed as one hour:

F₁ = 100,000 × (0.00000570776 + 0.0001) × 1 = 10.570776 USDC

F₂ = 220,000 × (0.00000570776 + 0.0002) × 1 = 45.2557072 USDC

T = 10.570776 + 45.2557072 = 55.8264832 USDC
α = 0.5 / 2 = 25%
Collected now = 55.8264832 × 25% = 13.9566208 USDC
Displayed: 13.9566 USDC
Remaining historical pending fees = 55.8264832 × 75% = 41.8698624 USDC
Displayed: 41.8699 USDC

The first segment is not recalculated with the new rate. After the decrease, the new segment has a notional of 180,000 USDC and starts at 10:20. The 41.8698624 USDC historical pending amount does not change with later rates.

Assume pending fees before a decrease are 10 USDC and the decrease ratio is 20%:

Collected now = 10 × 20% = 2 USDC
Remaining historical pending fees = 10 − 2 = 8 USDC

Final fee for the new segment = 80,000 × 0.0002 × 1 = 16 USDC
Collected on close = 8 + 16 = 24 USDC

The 2 USDC already collected is not collected again. Total fees collected during the position are 26 USDC. In this example, 0.0002 already includes the base rate and must not be increased by the base rate again.

Pending Funding Fee reduces isolated equity and participates in force-liquidation checks. Considering only margin, unrealized PnL, and funding fee:

Isolated equity
= isolated margin balance + unrealized PnL − pending Funding Fee

For example, with 1,000 USDC in isolated margin, zero unrealized PnL, and 10 USDC pending Funding Fee, equity under this definition is 990 USDC. Funding Fee already settled into the margin balance is not deducted again. Complete liquidation checks also include other applicable fees and maintenance-margin requirements.

10 Settlement Currency and Display Precision

Section titled “10 Settlement Currency and Display Precision”

Funding Fee for every market is settled in USDC. Fee calculation, retained pending fees, and settlement use the full precision defined on-chain; frontend-rounded values are not used as calculation inputs.

Calculated amount: 0.123456 USDC
Displayed amount: 0.1235 USDC

The frontend displays four decimal places using standard rounding. Actual settlement and pending-fee reductions continue to use full precision to avoid cumulative display-rounding errors.

Funding Fee, Transaction Fee, and Rebalancing Fee are separate fee items. A transaction-fee discount does not automatically reduce Funding Fee. Rebalancing Fee is collected only when Rebalancing Rate is nonzero and the user decreases or closes a position. Whether the market funding rate is zero does not determine whether Rebalancing Fee applies. Funding Fee’s hourly billing rule and Rebalancing Rate’s 60-second decay window apply independently.