Funding Calculation
In our trading system, funding is calculated and credited to your account hourly. We use Aggregate Index from CCData as the index price for funding calculation. Funding calculation is a three-step process that involves calculating the premium, funding rate, and funding value.
Step 1 - Premium Calculation
Premium is a measure of the imbalance between long and short positions in a perpetual contract, and it reflects how much the price of the perpetual contract deviates from the spot index price. Premium is calculated every minute using the following formula:
Step 2 - Funding Rate Calculation
Understanding Funding Rates
- Positive funding rate → Longs pay shorts
- Negative funding rate → Shorts pay longs
The sign of the rate tells our system which side is “over-represented” or “under-represented”. When the rate is below zero, it means the position/contract is trading below the index price; shorts are effectively being subsidized to hold that position, so they must transfer the funding fee to longs.
The funding rate is calculated every hour based on 1-hour average premium, which is the average 60 premiums calculated every minute defined in Step 1.
Parameter | Value | Description |
---|---|---|
TimeFactor | 1 | Normalization factor (in hours) for calculating funding rate |
InterestRateComponent | 0.0000125 | Constant added to account for interest cost |
MinimumFundingRate | -0.04 | Lower bound to prevent excessively negative funding rates |
MaximumFundingRate | 0.04 | Upper bound to cap extremely high funding rates |
Note that the funding rate is capped between the MinimumFundingRate
and MaximumFundingRate
values.
Step 3 - Funding Value Calculation
The funding value is calculated every hour when the funding rate is updated. The payment is credited to your account immediately upon calculation.
Note that the PositionSize is a negative value for short positions and a positive value for long positions.