Actively developed AlgoGP bridge

Freqtrade guide

Freqtrade is the most widely used open-source crypto bot, with a large strategy-sharing community.

Last reviewed · Also known as FreqAI, FreqUI, IStrategy

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 image
Install
from 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 df
RSI strategy.

The 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-run
Download data, backtest, optimize, then dry-run.

Use 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.py
  • frameworks/tests/test_bridge.py
  • frameworks/freqtrade_strategy.py
  • requirements.txt gains: freqtrade
freqtrade backtesting -s AlgoGPStrategy -c config.freqtrade.json
Run the AlgoGP strategy with Freqtrade.

Freqtrade 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

Independent guide. AlgoGP is not affiliated with Freqtrade. Features, licenses and maintenance change; check the official documentation. Nothing here is investment advice.

Build a strategy