Quick answer
Freqtrade is a free, open-source crypto trading bot written in Python. A strategy is an IStrategy class that adds indicators to a pandas DataFrame and marks entry and exit rows; Freqtrade downloads data, backtests, optimizes with hyperopt, runs FreqAI models, and trades dry-run or live on exchanges supported through CCXT (Binance, Bybit, OKX, Kraken, Gate, KuCoin, Hyperliquid and more), controlled by FreqUI or Telegram.
Freqtrade at a glance
- Category
- Crypto trading bots
- Language
- Python
- License
- GPL-3.0
- Does
- Backtesting, Live trading, Paper trading, Optimization, Machine learning
- Markets
- Crypto
- Best for
- Crypto spot and futures bots on 5m–1d timeframes with strong tooling for backtesting and operations.
- In AlgoGP
- Built-in bridge: add it to any project
Pick it if
Crypto spot and futures bots on 5m–1d timeframes with strong tooling for backtesting and operations.
Watch out for
Crypto only.
Freqtrade strengths and limitations
Strengths
- Complete toolchain: data download, backtesting, hyperopt, lookahead and recursive analysis.
- FreqAI for adaptive machine-learning models.
- Dry-run, live trading, FreqUI dashboard and Telegram control.
- Large community and documentation.
Limitations
- Crypto only.
- DataFrame-based strategies make path-dependent logic indirect.
- Each exchange’s quirks still apply (futures support varies).
Freqtrade example
pip install freqtrade # or the official Docker imagefrom freqtrade.strategy import IStrategy
import talib.abstract as ta
class RsiStrategy(IStrategy):
INTERFACE_VERSION = 3
timeframe = "1h"
minimal_roi = {"0": 0.05}
stoploss = -0.08
def populate_indicators(self, df, metadata):
df["rsi"] = ta.RSI(df, timeperiod=14)
return df
def populate_entry_trend(self, df, metadata):
df.loc[df["rsi"] < 30, "enter_long"] = 1
return df
def populate_exit_trend(self, df, metadata):
df.loc[df["rsi"] > 70, "exit_long"] = 1
return dfThe everyday commands
freqtrade download-data -c config.json --timeframes 1h --days 365
freqtrade backtesting -c config.json -s RsiStrategy
freqtrade hyperopt -c config.json -s RsiStrategy --hyperopt-loss SharpeHyperOptLoss -e 200
freqtrade trade -c config.json -s RsiStrategy --dry-runUse Freqtrade with AlgoGP
AlgoGP has a built-in Freqtrade bridge. Describe the strategy to the copilot and backtest it in AlgoGP, then open the project’s APIs & keys tab and add Freqtrade under Frameworks. The project gains these files, saved as a new version and included in every export:
frameworks/algogp_bridge.pyframeworks/tests/test_bridge.pyframeworks/freqtrade_strategy.pyrequirements.txtgains:freqtrade
freqtrade backtesting -s AlgoGPStrategy -c config.freqtrade.jsonFreqtrade connects to Binance, Bybit, OKX, Kraken, Gate (Gate.io), KuCoin, Bitget, HTX (Huobi), BitMEX, Hyperliquid, Bitvavo, Bitfinex. Each guide shows how to create the API key, which you can store in the project’s Keys & secrets.
Freqtrade: frequently asked questions
Is Freqtrade free?
Yes, it is GPL-3.0 open source; you pay only exchange fees and hosting.
Which exchanges does Freqtrade support?
Officially Binance, Bybit, OKX, Kraken, Gate, HTX, Bitget, Hyperliquid, BitMart and more; others via CCXT with community testing.
Freqtrade vs Hummingbot?
Freqtrade is for directional strategies on candles; Hummingbot is for market making, arbitrage and order-book strategies.
Freqtrade alternatives
- HummingbotPython, CythonOpen-source framework for crypto market making and arbitrage: connectors for CEXs and DEXs, Strategy V2 controllers, scripts and a REST API.
- JessePythonPython crypto trading framework with a clean strategy API, accurate multi-timeframe backtests, optimization and a live-trading plugin.
- OctoBotPythonOpen-source crypto bot with a web interface: grid, DCA, AI and TradingView-signal strategies, backtesting and many exchanges via CCXT.
- PassivbotPython, RustGrid and trailing-entry trading bot for perpetual futures, written in Python and Rust, with a backtester and evolutionary optimizer.
Independent guide. AlgoGP is not affiliated with Freqtrade. Features, licenses and maintenance change; check the official documentation. Nothing here is investment advice.