Trading
Funding
The hourly payment between longs and shorts.
Funding keeps each market's mark near its index. Every 60 minutes, on the hour in UTC, every open position pays or receives a funding payment.
The rate
Every 60 seconds the engine samples the premium: the mark minus the index, divided by the index. The hour's rate is the average of that hour's samples, clamped to 0.05% either way.
When the mark trades above the index the rate is positive and longs pay shorts. When it trades below, the rate is negative and shorts pay longs. The ticker shows the current hour's rate and the time of the next funding.
The payment
A position's payment is its size times the index at the funding time times the rate. A long of 10 SOL with the index at 150 USDC and a rate of 0.01% pays 0.15 USDC that hour, and a short of the same size receives it.
Funding passes between longs and shorts: what one side pays, the other receives. Payments are rounded to the micro-USDC, up for the side that pays and down for the side that receives, and the difference goes to the insurance fund.
Payments go straight into collateral. Each one is listed under Funding on /portfolio with the market, rate, position size and amount, and each position shows its net funding since it opened.