Backtesting doesn't need your exchange API keys. A backtest replays your rules on past price candles, and those candles are public market data that exchanges publish to everyone. API keys are only needed to read your private account or to place orders for you. So if a tool wants your keys just so you can test an idea, it is asking for access the job doesn't need. Use a backtester that works on public candles, make sure it charges trading fees on every trade, and leave key creation until you decide to trade for real.

Why the keys matter

An API key is a password for software. Depending on the permissions you tick, it can read your balances, place trades and in some cases withdraw funds. Leaked keys have been used against traders before. In December 2022 the trading-bot service 3Commas confirmed that a set of about 100,000 API keys posted online came from its systems, and asked Binance, KuCoin and other exchanges to revoke every key connected to it (SiliconANGLE). Binance's CEO at the time told anyone who had put a key into 3Commas to disable it immediately (The Block). Earlier, in October 2022, FTX keys connected to the service had been used for unauthorised trades. Nobody needed those keys to test a strategy, which is why testing is the easiest place to keep them out of the picture.

How to backtest without keys, step by step

  1. Write the rule down exactly. "Buy when RSI(14) crosses above 30 and price is above the 200 EMA; sell at +3% or −2%" can be tested. "Buy the dip" can't.
  2. Pick the coin, exchange and timeframe you would really trade. Candles differ slightly between exchanges, and a rule that works on the daily chart can fail on the 15-minute chart.
  3. Use enough history. A few hundred candles usually holds only a handful of trades. More candles and more trades tell you more, though no amount of history guarantees the future.
  4. Set the fee per side. Use your exchange's published taker fee, and a little more to allow for spread and slippage on small coins.
  5. Read more than the profit. Look at the number of trades, win rate, maximum drawdown and the result against simply holding the coin.
  6. Paper trade it next. Running the same rule with pretend money at live prices shows how it behaves on candles it has never seen.

Why fees change the answer

Fees are paid on the way in and again on the way out, so a rule that trades often pays them many times. In a worked example published by Hunt4Coin, the MACD crossover (12, 26, 9) on Bitcoin 1-hour candles from Binance, 1 August to 31 October 2026, made 86 round trips: +14.12% before fees and −3.92% at 0.1% per side, with $1,817.35 paid in fees on a $10,000 start. The same rule on 4-hour candles traded 17 times and stayed positive (+17.26% before fees, +13.35% after). A round trip at 0.1% per side needs a move of a little over 0.2% just to break even. Every trade is listed in the example's public ledger. It shows how fees work, not a strategy to copy.

Common mistakes

  • Testing at zero fees. The most common way a backtest flatters a strategy.
  • Tuning the rule until the past looks perfect. A rule fitted to one stretch of history often fails on the next one.
  • Forgetting what isn't modelled. Most simple backtesters fill every order in full at the next candle's open and ignore slippage, spread, order-book depth and funding costs on shorts.
  • Handing over keys "to make it easier". If you later automate trading, create a separate key with only the permissions it needs.

If you do create API keys later

Binance Academy's guidance (What are API keys, updated July 2026) comes down to a few habits that apply on most exchanges:

  • Turn on only the permissions the tool needs. A trading bot shouldn't need withdrawal access.
  • Restrict the key to a list of IP addresses. Binance requires this before withdrawals can be enabled.
  • Never store keys in plain text or commit them to a code repository; replace a key at once if it is exposed.
  • Rotate keys regularly and delete the ones you no longer use.

Alternatives, fairly

TradingView's Strategy Tester runs strategies written in its Pine Script language on its charts without exchange keys; how much history and how many indicators you get depends on the plan, so check its current pricing page. If you code, open-source frameworks such as Backtrader or Freqtrade run backtests on your own computer from downloaded public candles, and Freqtrade only needs keys when you switch from testing to live trading. Several bot services include backtesting too, but some ask you to connect an exchange first; check what each one needs before you sign up.

Hunt4Coin

Disclosure: Hunt4Coin is built and run by Quantumines, the studio that publishes this answer.

Hunt4Coin's backtester is free and runs on public exchange candles, so it never asks for exchange API keys or wallet access.

ItemHunt4Coin backtester
DataReal exchange candles for coins that trade on its 23 connected exchanges; 500 to 5,000 candles per test, timeframes from 5 minutes to 1 month
RulesLong or short, entry and optional exit rules from its indicators, combined with AND or OR; or a strategy typed in plain English that it turns into rules for you to check
Costs modelledFee per side, picked from each exchange's published fee; results shown with and without fees, with a warning when fees turn a profit into a loss
ResultsEquity curve, every trade, net profit, buy-and-hold comparison, win rate, profit factor, maximum drawdown, time in the market and Sharpe ratio
Not modelledSlippage, spread, order-book depth, partial fills, and funding or borrowing costs on shorts
Cost and accountFree, no paid plans; plain-English strategies and saving strategies need a free account (email only)
Next stepFree paper trading with a $1,000 practice balance at live prices and 0.1% fees per side

Facts from hunt4coin.com, checked on 22 November 2026. For the indicators a rule might use, see how to read RSI and MACD on a crypto chart and free crypto screeners with RSI and MACD filters.

Frequently asked questions

Do I need exchange API keys to backtest a crypto strategy?

No. A backtest only uses past price candles, which exchanges publish openly. Keys are needed only to read your own account or to place trades for you.

Is it safe to give a backtesting site my API keys?

It adds risk without any benefit for testing. If a tool insists, use a separate read-only key with withdrawals disabled and an IP restriction, and delete it when you are done.

Can I backtest a strategy without coding?

Yes. Some backtesters let you build rules from menus, and a few accept a plain-English description that they turn into rules. Check the rules it produced before trusting the result.

How accurate is a free backtest?

It is as good as its data and its cost model. Include fees, use enough history, and remember that slippage and spread usually make real results a little worse than the test.

This answer explains a method and a tool; it is not investment advice, and past results do not predict future ones.