microbook¶
A price-time priority matching engine and an event-driven market simulator for studying liquidity provision, execution quality and adverse selection, in pure Python with no runtime dependencies.
- Getting started: install it, trade against a book, run a market and write your first strategy, in about ten minutes.
- Concepts explain how it works: the matching engine, simulation time and latency, the market model, realism and the stylized facts, and the metrics.
- Guides walk through larger tasks: comparing strategies, replaying LOBSTER data, reinforcement learning, and performance and the native build.
- API reference: every public class and function.
- Stability and versioning: what counts as public API and how it changes.
- Changelog.
Every Python snippet on this site runs in CI, and the output shown under it is the output it prints.