Skip to content

FastMM trades on Binance (spot and USDⓈ-M futures), OKX, Bybit, Gate, Hyperliquid, Lighter, Deribit, Gemini, Coinbase (Advanced Trade and Exchange) and, for US stocks, Alpaca (Venue connectors).

Quickstart

python3 -m venv .venv && . .venv/bin/activate
pip install "fastmm-engine[hot]"
fastmm init my-mm && cd my-mm
python backtest.py
backtest py:MyMm  seed=1  md_events=7149  steps=12428  wall=0.02s
  net pnl                        -5.5272
  realized / unrealized / fees   0.5198 / 0.0005 / 6.0475
  fills (maker / taker)          1036 (1036 / 0)
  ...

The wheel needs Linux x86-64 and Python 3.10 or later; on Debian and Ubuntu, sudo apt install python3-venv first. For C++, see the Quick start in C++ or Build from source.

The same strategy trades live against a simulated exchange on this machine:

pip install "fastmm-engine[live]"
fastmm sim &
python -m fastmm run strategy:MyMm --config sim.toml --duration 60s

Films

Dashboard

bndesk: a real-time, read-only dashboard for FastMM on Binance.

Live demo Source

Where to go next