Alphafamilia Algo Help

Funding

Reading time: 4 minutes.

First: Futures: long and short.

Why funding exists

A perpetual future has no end date. Its price could drift away from the price of the coin itself. To prevent that, position holders regularly pay each other. This payment is called funding.

They pay not the exchange but each other: longs to shorts or shorts to longs. Binance takes no fee on funding.

How often

Usually every 8 hours. On Binance by default — at 00:00, 08:00 and 16:00 UTC. Some contracts have another interval: 4 hours or even 1 hour. The exchange shows the time of the next payment on the contract's page.

A payment concerns only those whose position is open at the settlement time. Closed the position a minute before — you neither pay nor receive.

Who pays whom

The size of the payment is set by the funding rate. It changes and can be plus or minus.

Rate Longs Shorts
Positive pay receive
Negative receive pay

The rate depends on the gap between the contract's price and the coin's price. The contract is dearer than the coin (more buyers) — the rate is usually positive. Cheaper — negative.

Payment = position size × rate. The exchange values the position at the mark price — the price it uses to value futures.

Example. A long of 2000 USDT, rate +0.01 %:

  • one payment: 2000 × 0.0001 = 0.20 USDT — you pay;
  • three payments a day: 0.60 USDT;
  • the cycle lasted 10 days: 6 USDT.

If the cycle's TP gives about 20 USDT, 6 USDT of it went to funding. A short of the same size at the same rate would see the opposite: +6 USDT.

The rate changes from payment to payment. So nobody knows the exact sum in advance.

How the strategy uses it

  • Funding is part of the cycle's accounting: received — as a plus, paid — as a minus.
  • The strategy takes the actual payment from the exchange's statement. If several strategies of one side work on a pair, each one's share is by its quantity in the position.
  • The TP price takes the funding already known into account. Paid some — the TP moves a little further, so the cycle's net profit does not fall below the set one.
  • A payment that comes after the TP corrects the result of the closed cycle.

Where you see it:

  • on the strategy's screen — the line “Funding this cycle”;
  • in the “💰 Cycle N closed” message — the line “Funding of the cycle: … (in the profit)”;
  • in the reports — the line “Funding (within the profit)”;
  • in the CSV export — lines with the role “funding”, by the payment date.

In detail — Futures: profit and funding and Reports.

What it means for you

One payment is small. But in a long cycle the payments add up and can eat the profit. The longer the cycle and the bigger the position, the more funding shows.

Check yourself

1. The funding rate is positive. You hold a long at the settlement time. What happens?

  1. a) You pay the shorts
  2. b) The shorts pay you
  3. c) You pay the exchange a fee
  4. d) Nothing: funding concerns only shorts
Answer

Right: a) You pay the shorts

With a positive rate longs pay shorts. The payment goes between traders, not to the exchange.

2. A short of 1000 USDT, rate −0.02 %. What is one funding payment for you?

  1. a) You receive 0.20 USDT
  2. b) You receive 2 USDT
  3. c) You pay 2 USDT
  4. d) You pay 0.20 USDT
Answer

Right: d) You pay 0.20 USDT

With a negative rate shorts pay longs. 1000 × 0.0002 = 0.20 USDT.

3. How does funding get into the result of a futures strategy's cycle?

  1. a) It does not: funding is a separate exchange account
  2. b) Only in the CSV export, it is not part of the cycle's profit
  3. c) It is part of the cycle's profit: received as a plus, paid as a minus
Answer

Right: c) It is part of the cycle's profit: received as a plus, paid as a minus

Funding is part of the cycle's result. You see it in the line “Funding this cycle” and in the reports as “Funding (within the profit)”.

Sources