Funding is collected hourly based on the ratio between longs and shorts, using a daily funding period. It is calculated using a difference between an hourly TWAP of mark price and an hourly TWAP of the index price, normalized over 24 hours.
1hย funding=1hย TWAPย 24markโindexโ
where:
โIndex price is the price of the underlying asset