Home / Backtesting & trading frameworks

PyLOB

Backtesting & trading frameworks★ 204 GitHub starsPython⏱ Last commit 58 days ago

Fast limit order book simulator for trading strategy research

What it is

An in-memory limit order book simulation for exploring automated trading strategies offline. Operating standard price-time priority, it handles market and limit orders with add, cancel and modify actions, matching trades at the resting order's price under a zero-latency assumption. Researchers working with Level 2 market data can attach an optional SQLite sink to record events, trades, balances and commissions for later querying, and orders report their own status via attributes like fulfilled and remaining. The chief simplification is zero latency—every trader reacts before the next quote arrives—so it models an idealized single-layer exchange rather than realistic market conditions.

At a glance

Research onlyOur rating, based on popularity, maintenance and how ready it is for real use.

Best forDevelopers
Used forBacktesting, Strategy research
MarketsMulti-market
StackPython
Learning curveModerate learning curve
Practical valueMedium practical value
CostFree and open source
HardwareNo GPU needed
MaintenanceLast commit 58 days ago

GitHub stars, last 30 days

Daily snapshots since 2026-09-12 (up to 30 days): +1 over the period, now 204. Gaps mean no snapshot was taken that day.

In the author's words

Fully functioning fast Limit Order Book written in Python.

Open on GitHub ↗This week's trending tools中文页面

Similar tools