Skip to content

Spot & derivatives exchange with a 90 µs matching engine

C++ matching core, Go services and a Next.js terminal for a licensed EU venue

Meridian Digital Exchange · Estonia
Client
Meridian Digital Exchange
Industry
Crypto & Digital Assets
Year
2026
Duration
14 months
Team
12
Engagement
Dedicated team

Results

90 µs

Median matching latency

1.2M/s

Order updates per second

2.1B

Orders processed

0

Reconciliation breaks

The challenge

Meridian held a MiCA licence application and a launch date, but their prototype ran on an off-the-shelf engine that could not produce a deterministic order log. Under a 40,000 orders-per-second replay it drifted: two runs of the same input produced different fills. No auditor would sign that, and no market maker would connect to it.

What we built

We rebuilt the core as a single-threaded C++20 matching engine per market, fed by a Kafka ingress and backed by a write-ahead event log. Every state transition is derived from the log, so any point in the venue's history can be reconstructed byte-for-byte. Go services handle REST/WebSocket APIs, risk and margin, and liquidation. Custody sits behind MPC signing with a four-eyes withdrawal policy, and KYC/AML, sanctions screening and travel-rule messaging were designed into the data model rather than bolted on. The trading terminal is a Next.js application with a canvas order book that holds 60 fps at full depth.

The outcome

The venue went live on schedule with 90 microsecond median matching latency and has processed 2.1 billion orders without a single reconciliation break. Two independent auditors replayed a full month of trading and matched the production ledger exactly.

“Two auditors replayed a month of trading and matched our ledger byte for byte. That single fact unblocked our licence and every market-maker conversation we have had since.”
KL

Kaspar Lemsalu

Chief Technology Officer, Meridian Digital Exchange

Client interviewEstonia

Next case study

Instant crypto exchanger across 42 payment rails

→

Tell us what you are building

Send a brief and a solution architect replies within one business day — with questions, not with a template.