Trading
Funding
When one side is more crowded than the other, the crowded side pays the light side. It is strictly between traders. The market keeps none of it.
The rate
The rate follows how lopsided the market is.
imbalance = |long units - short units| / (long units + short units)
rate = 0.05% of size an hour * imbalance the most the crowded side pays- With longs and shorts equal, the rate is zero.
- At the launch settings the rate is never more than 0.05% of size an hour. The admin wallet can raise that setting, never past 0.075% of size an hour, the limit compiled into the program.
- With nobody on the other side, nothing is charged. There is no one to pay.
- A change of the funding settings counts from the next second. It is never charged for time that has passed: each market pays for the time behind it at the numbers it last used.
An example
Longs hold three times the units that shorts hold. The imbalance is 0.5, so longs pay 0.025% of their size an hour. On a 10 SOL long that is 0.0025 SOL an hour. The shorts hold a third of the units, so each short receives three times that rate: 0.075% of its size an hour.
Who receives it
The traders on the light side, by units held. What the crowded side pays is what the light side receives, to within a few lamports of rounding. The market books no income from funding.
One limit: a receiver gets at most ten times the rate above. When the crowded side holds more than ten times the units of the light side, the light side is at that limit, and the crowded side pays less than the rate above, so that what is paid still equals what is received. So at the launch settings the most the crowded side pays is about 0.041% of size an hour, just under 1% a day. That is when it holds ten times the units of the light side.
How it reaches you
- Funding builds up with time and is settled into your margin whenever your position is touched: when you add to it, change its margin, close it, or when someone checks it for liquidation.
- Funding you pay lowers your margin, so it moves your liquidation price closer.
- When funding has worn your margin under what your position must hold at all times, what the band could cost it and its liquidation line at the far edge of the band, the position can be closed by the band rule. For a position on the crowded side at the most leverage that never adds margin, that is about 7 hours after it opens at the launch rate, and at least 4 hours at the highest rate the program allows. Top up margin before the hours shown on the position run out, or use less leverage on a crowded side.
- The app shows the rate right now under each market, and which side is paying.
Funding is the pull that brings a lopsided market back: the longer one side stays crowded, the more it pays to be on the other. At the edge of the band that is at its plainest: the full side pays, and a position opened on the other side has almost nothing to lose to price.