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.txtpython3 src/backtest.py configs/template.json
python3 src/main.py configs/my_config.jsonUse 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
Design and backtest in AlgoGP
Describe the idea to the copilot and backtest it on AlgoGP’s normalized history.
- 2
Add any bridge to get the adapter core
Adding a bridged framework (for example Backtrader) writes
frameworks/algogp_bridge.py, whoseStrategyBridge.on_bar()returns the orders the strategy wants. - 3
Call it from Passivbot
Feed Passivbot’s bars to
StrategyBridge, place the returned orders with Passivbot, and report fills back withsync().
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
- HummingbotPython, CythonOpen-source framework for crypto market making and arbitrage: connectors for CEXs and DEXs, Strategy V2 controllers, scripts and a REST API.
- FreqtradePythonThe most popular open-source crypto trading bot: Python strategies, backtesting, hyperopt, FreqAI machine learning, dry-run and Telegram/web control.
- OctoBotPythonOpen-source crypto bot with a web interface: grid, DCA, AI and TradingView-signal strategies, backtesting and many exchanges via CCXT.
- HftBacktestRust, PythonHigh-frequency backtesting in Rust and Python that models queue position and feed/order latency from full order-book and trade data.
Independent guide. AlgoGP is not affiliated with Passivbot. Features, licenses and maintenance change; check the official documentation. Nothing here is investment advice.