The Distributed Quantitative Intelligence Network
← All posts

November 13, 2026 · Michael Shane

How Funding Rates Change a Perp Backtest

Perpetual futures charge or pay funding every few hours. Here's what funding is, why most backtests leave it out, and how to add it so your results hold up.

If you trade crypto perpetual futures, there's a cost that never shows up on the chart. It's called funding. Every few hours, one side of the market pays the other. Most quick backtests leave it out, and for ideas that hold trades for a day or more, that can be the difference between a result that looks fine and one that quietly loses.

This guide explains what funding is, when it matters, and how to add it to a test. It builds on How Fees and Slippage Change a Backtest and How to Backtest Without Fooling Yourself.

What a funding rate is

A perpetual future ("perp") is a contract that tracks a coin's price but never expires. To keep its price close to the real spot price, exchanges use funding.

  • When the perp trades above spot, the funding rate is positive. Longs pay shorts.
  • When the perp trades below spot, the rate is negative. Shorts pay longs.

Funding is paid at set times, often every 8 hours, and on some exchanges every hour. You only pay or receive it if you hold a position at that moment. It's charged on the full size of your position, not just your margin.

That last point matters with leverage. If you put up $100 at 10x, your position is $1,000. A 0.01% funding payment is 10 cents on $1,000, which is 0.1% of your $100 margin, every time it's charged.

Why backtests often leave it out

Price data is easy to get. Funding history is a separate data set, and it's different for every exchange and every coin. So a lot of backtests, including many that an AI writes for you, simply skip it.

That's fine for trades that last a few minutes. It's not fine for trades that last days. A trade held for 3 days at 8-hour funding crosses about 9 funding times. Those small charges add up.

Funding also isn't steady. When lots of people are long at once, the rate can jump to several times its normal level and stay there for a while. Those are often the exact times a trend-following idea wants to be long.

A quick simulation

We ran a simple test. 100 runs of 100 long trades each, with a small built-in edge and 0.10% round-trip fees. Funding was charged every 8 hours, averaging about 0.02% per 8 hours, with crowded stretches where it ran higher (about 15% of the time). We changed only how long each trade was held.

All numbers below are simulated, not real trading results.

  • Held about 4 hours: 82 of 100 runs net positive without funding, 77 of 100 with it.
  • Held about 24 hours: 58 of 100 without funding, 46 of 100 with it.
  • Held about 3 days: 69 of 100 without funding, 40 of 100 with it.

Short trades barely noticed. Multi-day trades went from mostly positive to mostly negative.

Then we kept the 3-day version and changed only the funding level:

  • No funding: 69 of 100 net positive.
  • Half the normal funding: 53 of 100.
  • Normal funding: 40 of 100.
  • Double funding (a crowded market): 12 of 100.

Same idea, same prices. Only the funding changed. A backtest run during a calm stretch can look very different once the market gets crowded.

How to add funding to a test, step by step

1. Know how long your trades last

Check the average and the longest hold time. If most trades close within a few hours, funding is a small cost. If they last a day or more, it can be one of your biggest costs. See How to Test a Time Stop for ways to limit hold time.

2. Use real funding history for that exchange and coin

Funding differs between exchanges and between coins. Use the history for the exact market you'd trade, with the right payment times. Don't assume one rate fits everything.

3. Charge it only when you hold at a payment time

Funding is paid at fixed times. A trade opened just after one payment and closed just before the next pays nothing. A trade that sits through ten payment times pays ten times. Count them.

4. Charge it on position size, not margin

Funding is a percent of the full position. At higher leverage, the same funding takes a bigger bite out of your margin. See Position Sizing for Beginners.

5. Check longs and shorts separately

Funding usually costs longs and pays shorts, but not always. If your idea trades both ways, look at each side on its own, so a funding benefit on one side doesn't hide a weak idea.

6. Test it at double funding

If the idea only works when funding is calm, you want to know that before the market gets crowded. Run it again with funding doubled and see what's left.

7. Confirm it on new data

Watch it forward in paper trading through a few different funding conditions. See Paper Trading vs Live Trading and In-Sample vs Out-of-Sample Testing.

Ways funding can fool you

  • A calm backtest window. If the test period had low funding, the result will look better than it would in a busy market.
  • Fees counted, funding not. Many tests charge trading fees and stop there. For long holds, funding can be bigger than fees.
  • An idea that only works because of funding. Some short ideas look good mostly because they collect funding. That can change fast when the market turns.
  • Leverage hides it. The percent looks tiny until you multiply it by your leverage and the number of payments.

Where AI fits

AI tools like ChatGPT, Claude, Grok or Cursor can add funding to a backtest quickly if you ask. Ask yours: did you include funding? Which exchange's history did you use? Did you charge it on position size at each payment time? What happens at double funding? If it can't answer, the result isn't ready to trust.

How Pickled Lizard tests ideas like this

Pickled Lizard is an AI trading and research platform. You bring the idea, or your own AI does, and we test it the same way every time:

  1. Backtest on the full data set we have, with fees and next-candle timing.
  2. Paper forward testing on new market data, with real fees and timestamps. The idea shows as "still collecting" while it builds a record.
  3. Verified only when its forward results reach 80% of its own backtest trade rate and 80% of its backtest win rate.

Results show on the public paper trading leaderboard. Pickled Lizard isn't an exchange and doesn't hold your money. It's a non-custodial aggregator that connects to your own exchange accounts. Our servers are in Europe. The beta is free, and live trading is off during the beta.

Test it free at pickledlizardz.com/join

Quick recap

  • Funding is a payment between longs and shorts on perps, often every 8 hours, charged on full position size.
  • Short trades barely feel it. Multi-day trades can feel it a lot.
  • In our simulation, 3-day trades went from 69 of 100 net positive without funding to 40 of 100 with it, and 12 of 100 at double funding (simulated).
  • Use real funding history, count payment times, charge it on position size, and test at double funding.

New here? Start with How to Test an AI Trading Strategy Before You Use Real Money.