Engine ยท Multi

matcher

High-performance FIFO limit order book and matching engine processing up to ~9M orders/sec. Single-writer architecture with zero external dependencies.

5
Languages
~9M
Orders/s
Zero
Dependencies
43
Test Vectors
01

Features

  • Limit and market orders with New, Cancel, Replace operations
  • Time policies: GTC, IOC, FOK, Post-Only
  • FIFO price-time priority with maker-price execution
  • Partial fills and order sweeps
  • Pooled orders and intrusive FIFO price levels
  • Bitmap ladder indexing for performance
02

Architecture

Core Design
  • Single-writer pattern per symbol
  • I/O abstraction layer (Sink)
  • Multi-symbol Engine router
  • Deterministic event streams (byte-identical across implementations)
03

Implementations

C++20 ~23M TPS
Rust ~19M TPS
Java ~11M TPS
Go ~9M TPS
TypeScript ~5M TPS
04

Testing

Methodology
  • 43 golden vector test cases
  • Cross-implementation byte-identical verification
  • Custom benchmark harness with deterministic workload generator