Skip to main content
Funding keeps the perpetual price aligned with the Index. It is disabled during Market Close when the Index may be stale or manipulable.

Activation

SessionFunding Active
Reference OpenYes
Weekday OvernightNo
WeekendNo
Reference DisruptedNo
Underlying HaltedNo
Rationale: Removes incentives to manipulate mark/index during closures.

Calculation

Premium

Premium = (Mark - Index) / Index
PremiumEMA = EMA_T(Premium)   // T = 5–15 minutes

Funding Rate

FR_hour = clamp(PremiumEMA, -FR_cap, +FR_cap)
Default FR_cap: 0.1% to 0.5% per hour

Payment

Payment = PositionNotional * FR_hour * interval_hours
Sign convention:
  • Premium > 0: longs pay shorts
  • Premium < 0: shorts pay longs

Intervals

TypeDescription
ContinuousAccrues every second, smoother for traders
DiscreteFixed intervals (1h, 4h, 8h), simpler to implement

Session Transitions

Resuming Funding (Close → Open)

  1. Wait for Index to stabilize (~1-2 minutes)
  2. Reset PremiumEMA to current premium
  3. Resume funding calculations

Pausing Funding (Open → Close)

  1. Compute final payment at transition
  2. Set funding_rate = 0
  3. Broadcast update
Use a hysteresis timer (60s) to prevent on/off oscillation from feed flapping.

API Response

{
  "instrument": "NVDA-PERP",
  "funding_active": true,
  "funding_rate_current": 0.000125,
  "premium_current": 0.0023,
  "premium_ema": 0.0018,
  "next_payment_timestamp": 1234571490,
  "session_state": "OPEN"
}

Parameters

ParameterDefault
EMA window5-15 min
FR cap0.5% / hour
Funding intervalContinuous or 8h
Hysteresis timer60s