Funding Fee
1 Overview
Section titled “1 Overview”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.
2 Market Funding Rate
Section titled “2 Market Funding Rate”2.1 Rate components
Section titled “2.1 Rate components”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.
2.2 Interest component
Section titled “2.2 Interest component”The standard interest component is 0.01% every 8 hours, equivalent to:
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.
2.3 Premium component
Section titled “2.3 Premium component”The premium index measures the price deviation of the perpetual contract from the oracle price of its underlying asset. The standard formula is:
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.
2.4 Standard market funding-rate formula
Section titled “2.4 Standard market funding-rate formula”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.
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.
2.5 Market-specific methods
Section titled “2.5 Market-specific methods”Some markets use a more responsive premium calculation:
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.
2.6 Market-rate example
Section titled “2.6 Market-rate example”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:
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.
3 Applicable Hourly Rate
Section titled “3 Applicable Hourly Rate”3.1 Base rate
Section titled “3.1 Base 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.
3.2 Position direction
Section titled “3.2 Position direction”Let f be the market hourly funding rate and r be the position’s applicable hourly rate:
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.
3.3 Rate updates
Section titled “3.3 Rate updates”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.
3.4 No valid market rate
Section titled “3.4 No valid market rate”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.
4 Billing Notional Value
Section titled “4 Billing Notional Value”The billing notional value of each holding segment is V:
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.
5 Holding Segments and Billable Time
Section titled “5 Holding Segments and Billable Time”5.1 Segment boundaries
Section titled “5.1 Segment boundaries”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.
5.2 Billable hours
Section titled “5.2 Billable hours”Each segment starts its own timer and rounds its duration up independently to a whole hour:
ceil means round up. Timing is not aligned to calendar-hour boundaries.
5.3 The effect of increases and decreases
Section titled “5.3 The effect of increases and decreases”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:
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.
6 Fee Calculation and Fixing
Section titled “6 Fee Calculation and Fixing”6.1 Current-segment fee
Section titled “6.1 Current-segment fee”The latest applicable rate is used for all billable hours in the current segment; historical rates within that segment are not accumulated separately.
6.2 Historical-segment fee
Section titled “6.2 Historical-segment fee”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:
After a segment ends, later rate changes do not change its fee.
6.3 Pending Funding Fee
Section titled “6.3 Pending Funding Fee”Let H be fixed historical-segment fees that have not yet been collected:
Collected fees are not included again in the pending amount.
7 Fee Collection
Section titled “7 Fee Collection”7.1 Increase
Section titled “7.1 Increase”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.
7.2 Decrease
Section titled “7.2 Decrease”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:
The remaining historical pending fees stay fixed. A new segment is created after the decrease and its fee is calculated separately.
7.3 Full close
Section titled “7.3 Full close”On a full close, the final segment is fixed and all pending Funding Fee is collected:
7.4 Force liquidation
Section titled “7.4 Force liquidation”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.
7.5 When money is collected
Section titled “7.5 When money is collected”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.
8 Calculation Examples
Section titled “8 Calculation Examples”All amounts below are in USDC. Calculations retain full precision; the frontend rounds displayed amounts to four decimal places.
8.1 Applicable rates for longs and shorts
Section titled “8.1 Applicable rates for longs and shorts”Assume a billing notional of 40,000 USDC, a market hourly funding rate of 0.00005, and 5 billable hours.
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:
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.
8.3 Decrease followed by a full close
Section titled “8.3 Decrease followed by a full close”Assume pending fees before a decrease are 10 USDC and the decrease ratio is 20%:
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.
9 Effect on Isolated Equity
Section titled “9 Effect on Isolated Equity”Pending Funding Fee reduces isolated equity and participates in force-liquidation checks. Considering only margin, unrealized PnL, and 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.
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.
11 Relationship to Other Fees
Section titled “11 Relationship to Other Fees”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.