Actively developed AlgoGP bridge

Hummingbot guide

Hummingbot grew out of liquidity mining and is now the go-to open-source stack for order-book strategies on crypto venues.

Last reviewed · Also known as Hummingbot scripts, Strategy V2, Hummingbot API, Condor

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 source
Install
from 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}")
A minimal script that logs mid prices every tick.

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.py
  • frameworks/tests/test_bridge.py
  • frameworks/hummingbot_script.py
start --script hummingbot_script.py   (inside Hummingbot)
Run the AlgoGP strategy with 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

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

Build a strategy