Quick answer
Hummingbot is an open-source Python framework for running crypto trading bots, best known for market making and arbitrage. It ships standardized connectors for centralized exchanges and DEXs, paper-trade connectors, and a Strategy V2 architecture where controllers combine candles from a MarketDataProvider with executors (position, DCA, grid, TWAP) that manage orders. Simple scripts subclass ScriptStrategyBase and react on every tick.
Hummingbot at a glance
- Category
- Crypto trading bots
- Language
- Python, Cython
- License
- Apache-2.0
- Does
- Live trading, Paper trading, Market making, Order execution, Backtesting
- Markets
- Crypto, On-chain
- Best for
- Market making, cross-exchange and AMM arbitrage, and directional bots that need precise order management.
- In AlgoGP
- Built-in bridge: add it to any project
Pick it if
Market making, cross-exchange and AMM arbitrage, and directional bots that need precise order management.
Watch out for
Steeper setup (Docker, connectors, configs) than candle-only bots.
Hummingbot strengths and limitations
Strengths
- Many CEX and DEX connectors with a common interface.
- Strategy V2: reusable controllers and executors with built-in risk handling.
- Paper-trade connectors and a backtesting module for V2 controllers.
- Hummingbot API and dashboard for running fleets of bots.
Limitations
- Steeper setup (Docker, connectors, configs) than candle-only bots.
- Python/Cython codebase is large; debugging connectors takes time.
Hummingbot example
docker compose up -d # from the hummingbot repo; or install from sourcefrom hummingbot.strategy.script_strategy_base import ScriptStrategyBase
class LogPrice(ScriptStrategyBase):
markets = {"binance_paper_trade": {"ETH-USDT"}}
def on_tick(self):
price = self.connectors["binance_paper_trade"].get_mid_price("ETH-USDT")
self.logger().info(f"ETH-USDT mid: {price}")Scripts vs Strategy V2 controllers
Scripts are single files with on_tick, ideal for experiments. Strategy V2 splits logic into controllers (signals from candles via the MarketDataProvider) and executors (order lifecycles such as position executors with stop-loss, take-profit and time limits), loaded by the v2_with_controllers script from YAML configs.
Use Hummingbot with AlgoGP
AlgoGP has a built-in Hummingbot bridge. Describe the strategy to the copilot and backtest it in AlgoGP, then open the project’s APIs & keys tab and add Hummingbot 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/hummingbot_script.py
start --script hummingbot_script.py (inside Hummingbot)Hummingbot connects to Binance, Bybit, OKX, KuCoin, Gate (Gate.io), Coinbase Advanced Trade, Kraken, Hyperliquid, dYdX, HTX (Huobi), MEXC, Bitget. Each guide shows how to create the API key, which you can store in the project’s Keys & secrets.
Hummingbot: frequently asked questions
Is Hummingbot free?
Yes, Apache-2.0 open source, maintained by the Hummingbot Foundation.
Can Hummingbot run directional strategies?
Yes, with scripts or V2 directional controllers using candles; AlgoGP’s bridge runs any AlgoGP strategy as a script.
Does Hummingbot support DEXs?
Yes, through Gateway connectors for chains and AMMs plus perp DEXs such as Hyperliquid and dYdX.
Hummingbot alternatives
- FreqtradePythonThe most popular open-source crypto trading bot: Python strategies, backtesting, hyperopt, FreqAI machine learning, dry-run and Telegram/web control.
- PassivbotPython, RustGrid and trailing-entry trading bot for perpetual futures, written in Python and Rust, with a backtester and evolutionary optimizer.
- HftBacktestRust, PythonHigh-frequency backtesting in Rust and Python that models queue position and feed/order latency from full order-book and trade data.
- OctoBotPythonOpen-source crypto bot with a web interface: grid, DCA, AI and TradingView-signal strategies, backtesting and many exchanges via CCXT.
Independent guide. AlgoGP is not affiliated with Hummingbot. Features, licenses and maintenance change; check the official documentation. Nothing here is investment advice.