Skip to content

FR (Funding Rate)

Funding rate: what longs pay shorts (positive) or shorts pay longs (negative), per hour. Very high funding means crowded longs, which often comes before a drop. Very negative funding means crowded shorts, which often comes before a squeeze up. Z-score compares it with its own recent average. Uses settled funding, so backtests match live. Predicted funding is live only.

Line What it is
Funding rate (FR) The last settled funding rate at or before the candle's close, as % per hour. On an 8-hour venue a 0.08% settlement is 0.01%/h.
Funding SMA (FRMA) The simple average of FR over the last Settlements settlements (not candles). Default 168: 7 days on a 1-hour venue, 56 days on an 8-hour venue.
Funding z-score (FRZ) (FR − FRMA) / the standard deviation of those settlements. 0 when the deviation is 0.
Predicted funding (FRPRED) The exchange's next (predicted) funding rate, live and paper only. Not backtestable. Not available on Binance or Bybit. Available in a later update. Saving an FRPRED condition is refused until then.

All of these are untested until they have run live on paper on at least one venue.

Settings

Setting Default What it does
Settlements 168 How many past settlements FRMA and the z-score use (24 to 1,000).
Units % per hour How FR and FRMA are shown: % per hour, % per 8 hours, or APR (365 × 24 hours). Ready-made conditions use % per hour and show the 8-hour and APR equivalents in the label.

Ready-made conditions

For Condition Fires when
Buy Funding below −0.01%/h (−0.08%/8h, −87.6% APR) settled funding is below −0.01% per hour
Buy Funding z-score below −2 the z-score is below −2
Buy Funding falling settled funding is lower than it was 5 candles ago
Sell Funding above 0.01%/h (0.08%/8h, 87.6% APR) settled funding is above 0.01% per hour
Sell Funding z-score above 2 the z-score is above 2
Sell Funding rising settled funding is higher than it was 5 candles ago

Warnings

  • Blocks Save: Settlements a whole number from 24 to 1,000; Units one of % per hour, % per 8 hours, APR.
  • Shown, does not block: Predicted funding is not backtestable. On Hyperliquid and OKX a backtest still runs and lists "Ignored in backtest: Funding Rate (predicted) (live only)". On Binance and Bybit, and on any spot pair, predicted funding is not available; the condition is ignored.

Good to know

  • A settlement at time t is visible only on candles that close at or after t, so there is no look-ahead. Paper and live use the same public funding history as the backtest.
  • Funding needs a perpetual pair. It is available on Hyperliquid (full history, 1-hour settlements), Binance USDⓈ-M, Bybit and OKX (OKX history covers the last three months). On OKX, Bybit and Binance the settlement interval is per symbol: often 8 hours, but some symbols settle every 4 hours or 1 hour. Other venues, including Kraken, are not offered yet.
  • On OKX, candles before the three-month history are ignored and the backtest still runs. The result shows one line, for example "Ignored in backtest: Funding Rate before Oct 15".
  • If live or paper settled funding (FR, FRMA, FRZ) is missing, or the last visible settlement (or the local receive time of the last new settlement) is more than two of that venue's settlement intervals ago, that condition is ignored and the entry still goes through. The interval comes from the venue's own schedule (1 hour on Hyperliquid; per symbol on OKX, Bybit and Binance). If the schedule is unknown, the most recent observed gap is used, then 8 hours. A missed settlement (for example 16 hours on an 8-hour symbol) is capped at the modal gap so that row's FR is not halved. The interval is read from the venue's own field when it is available (Bybit fundingInterval, OKX fundingTime/nextFundingTime, Binance fundingInfo). Gate or backtest rows passed without a receive time are stamped now, so only settlement age applies for those gates. Predicted funding (FRPRED) is a polled live snapshot, available in a later update: it goes stale by its receive time after about two poll intervals, not by the settlement clock, and a snapshot marked error or stale is ignored. A missing exit condition does not fire. Stops, take profit and the kill switch are unaffected.
  • Candle warm-up is two candles. The funding history itself is a separate series: 168 settlements plus one (7 days and one hour on Hyperliquid, 56 days and 8 hours on an 8-hour venue).
  • The last 2,048 settlements of each pair are kept (about 8 MB in the worst case, 256 pairs).