Skip to content
O

Orderbook

A fast L2/L3 orderbook data structure, in C, for Python

by bmosconFree

#601in Finance
0In stores

Description

orderbook is a Python package with a fast L2 and L3 order book data structure, written in C. An order book holds the bids and asks for a mar…

Highlights

  • Fast L2 and L3 order book written in C
  • Max depth limit with optional strict mode
  • CRC32 checksums for exchange order books
  • Type conversion when exporting to a dict
  • Supports Python 3.13 and later

Ratings & Reviews

No ratings yet

Be the first to rate Orderbook.

People also visit

B

blackforge

Answer crypto market-data questions with BlackForge

AI Skills
Get
C

Cryptofeed

Cryptocurrency Exchange Websocket Data Feed Handler

Finance
Launch
L

Lean

Lean Algorithmic Trading Engine by QuantConnect (Python, C#)

Finance
Launch
C

ccxt-python

CCXT cryptocurrency exchange library for Python developers

AI Skills
Get
A

Algo.Py

The Next-Gen Algorithmic Trading Framework (Early Beta)

Finance
Launch
O

orderly-onboarding

Orderly Network onboarding: omnichain perps infra, MCP server

AI Skills
Get

Orderbook FAQ

What is orderbook?

A Python package that stores the bids and asks for a market, known as an L2 or L3 order book, in a fast data structure written in C.

How do I install it?

Run uv add order-book, or uv pip install order-book. From a checkout of the repository, run uv pip install . and make sure a C compiler is available.

Which exchanges have checksum support?

The README lists Kraken, OKX and OKCoin, Bitget and Bitfinex as formats you can set with checksum_format.

What does max_depth do?

It limits how many levels are visible. By default, deeper levels are still kept but hidden. With max_depth_strict set to True they are deleted as the book updates, which caps memory use.

Is it open source?

The source is public on GitHub at bmoscon/orderbook.

What are the best Orderbook alternatives?

Popular alternatives to Orderbook include Cryptofeed, Lean and Algo.Py. See all Orderbook alternatives

Developer Stuff

Badges