Funding
Perpetual contracts use funding rates to pull the mark price toward the oracle price. Funding is a periodic payment between longs and shorts, settled once per hour. The crowded side pays the other side.
How the rate is calculated
At each hourly interval, the validator computes:
avg_premium = sum(premium_samples) / count(premium_samples)
scaled_premium = avg_premium * premium_multiplier
interest_adj = clamp(interest_rate - scaled_premium, -0.05%, +0.05%)
funding_8h = scaled_premium + interest_adj
funding_rate = clamp(funding_8h / 8, -cap, +cap)Where each premium sample is: (impact_mid - oracle_price) / oracle_price
The validator samples the premium every 5 seconds throughout the hour and averages the samples at settlement (TWAP). Over a 1-hour interval, the validator averages approximately 720 samples.
Funding uses the impact mid, which is the depth-weighted order-book midpoint. Only resting orders inside the market's price band count toward it. See Mark price. The premium and the interest rate are 8-hour rates. The validator applies the clamp to the 8-hour rate, then divides by 8 to get the hourly rate.
Premium multiplier
Each market scales the average premium by a premium multiplier before the
clamp. The multiplier does not scale the interest rate. Real estate markets on
mainnet use 0.25. Read premiumMultiplierBps from GET /v1/markets, where
10000 is 1x and 2500 is 0.25x.
Because the clamp centres on the interest rate, a small premium leaves funding at the interest rate. Funding moves away from the interest rate only when the scaled premium is more than 0.05% from it.
Funding cap
The validator caps the hourly rate. Real estate markets on mainnet cap it at
±0.5% (50 bps) per hour. The cap is set per market; read maxFundingRateBps
from GET /v1/markets/{id}/funding.
Interest rate component
The interest rate is a fixed baseline that flows from longs to shorts regardless of the premium. It models the cost of carry: a long perp position is economically similar to borrowing USD to buy the asset. Shorts earn this rate for providing the other side.
When the premium is near zero, the funding rate converges to the interest rate. When the premium is large, the interest rate has minimal effect. The clamp limits the interest adjustment to ±0.05% of the 8-hour rate, which is ±0.00625% per hour.
The interest rate is a per-market 8-hour rate. Read interestRateMicroBps from GET /v1/markets. One unit of interestRateMicroBps is 0.01 bps. Every listed market uses 64, which is 0.64 bps per 8 hours or 0.08 bps per hour.
With a zero premium, fundingRate reads 8000. The API reports fundingRate in units of 10⁻⁹, so 1 bp is 100000.
Who pays whom
- Positive rate (impact mid > oracle): longs pay shorts
- Negative rate (impact mid < oracle): shorts pay longs
If the mark trades above the oracle, being long is expensive. This creates an incentive for longs to sell, pushing the mark back toward the oracle.
Payment
Parcl applies funding directly to your collateral balance. If you pay, your collateral decreases. If you receive, your collateral increases. This affects your margin and liquidation price immediately.
The payment per position:
funding_payment = funding_rate * oracle_price * position_sizeEach position settles independently against the cumulative funding index. When long and short open interest is balanced, trader payments offset each other. When it is not balanced, the net difference credits or debits the Parcl Treasury.
Timing
Funding settles once per hour. The displayed funding rate in the UI and API updates continuously throughout the hour, reflecting the running TWAP estimate so far. When the hourly crank fires, the current estimate becomes the actual rate applied to all positions.
The displayed rate is "what the rate would be if settlement happened right now." As more samples accumulate over the hour, the estimate stabilizes.
API
Current funding rate per market: GET /v1/markets (see fundingRate field)
Funding rate history per market: GET /v1/markets/{id}/funding
Your funding payment history: GET /v1/accounts/{id}/funding (requires authentication)
WebSocket: subscribe to the funding channel for real-time rate updates.