Actively developed

Passivbot guide

Passivbot is a specialist: it does one style of contrarian, mean-reverting futures trading and does it efficiently.

Last reviewed

Quick answer

Passivbot is an open-source trading bot for perpetual futures that layers grid and trailing entries and closes, with the hot path in Rust. It includes a backtester and an evolutionary optimizer to tune configs, and runs on exchanges such as Bybit, Binance, OKX, Bitget, Gate and Hyperliquid. Grid strategies on leverage can suffer large drawdowns in trends.

Passivbot at a glance

Category
Crypto trading bots
Language
Python, Rust
License
Unlicense
Does
Backtesting, Live trading, Optimization, Market making
Markets
Crypto
Best for
Experienced futures traders running grid-style strategies with careful risk limits.
In AlgoGP
Use the exported strategy object from your own code

Pick it if

Experienced futures traders running grid-style strategies with careful risk limits.

Watch out for

Grid logic is exposed to strong trends.

Passivbot strengths and limitations

Strengths

  • Fast Rust backtester and optimizer.
  • Multi-symbol futures support.
  • Transparent, configurable behaviour.

Limitations

  • Grid logic is exposed to strong trends.
  • Leverage risk; read the docs on wallet exposure.

Passivbot example

git clone https://github.com/enarjord/passivbot && pip install -r requirements.txt
Install
python3 src/backtest.py configs/template.json
python3 src/main.py configs/my_config.json
Backtest then run a config.

Use Passivbot with AlgoGP

AlgoGP does not add Passivbot to projects automatically yet, but nothing stops you using them together. Every AlgoGP project exports plain Python with a framework-neutral strategy object, so you can call it from Passivbot yourself.

  1. 1

    Design and backtest in AlgoGP

    Describe the idea to the copilot and backtest it on AlgoGP’s normalized history.

  2. 2

    Add any bridge to get the adapter core

    Adding a bridged framework (for example Backtrader) writes frameworks/algogp_bridge.py, whose StrategyBridge.on_bar() returns the orders the strategy wants.

  3. 3

    Call it from Passivbot

    Feed Passivbot’s bars to StrategyBridge, place the returned orders with Passivbot, and report fills back with sync().

Passivbot connects to Bybit, Binance, OKX, Bitget, Gate (Gate.io), Hyperliquid. Each guide shows how to create the API key, which you can store in the project’s Keys & secrets.

Passivbot: frequently asked questions

Is grid trading safe?

No strategy is; grids profit in ranges and can lose heavily in trends, especially with leverage.

Passivbot alternatives

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

Build a strategy