Skip to content

Tutorial: your first market maker

You build first_mm, a market maker that quotes around the microprice, limits its position and reacts to lost connections, and take it from a unit test to a Binance Demo session.

You need a FastMM build (Install); page 9 also needs a Binance Demo Trading account.

Page You
1. Set up build FastMM and list its strategies
2. The model learn how the engine calls a strategy
3. Write the strategy write the parameters, the quoting function and the hooks
4. Unit-test it test the quoting function and the hooks
5. Backtest in C++ run a 60 s backtest from a C++ program
6. Register it add first_mm to the command-line programs
7. Backtest and replay from the command line record a backtest and verify its replay
8. Trade on the simulated exchange trade through a disconnect and replay the live journal
9. Trade on Binance Demo dry run, run a keyed session and check the shutdown
Material Where
code examples/cpp/tutorial/
configurations configs/tutorial-sim.toml, configs/tutorial-binance-demo.toml
shell commands scripts/docs/tutorial.sh; CI runs them through page 8

Python strategies: Python.