Blog Posts

Fresh takes, proven techniques, AI research insights, and technical deep dives — this blog is where I share lessons learned, tools I trust, and engineering solutions that just work.

Building an Exchange - Part 5: Determinism & Event Sourcing

Using event sourcing, replay, snapshots, and immutable logs to make a Python matching engine deterministic, auditable, and recoverable.

Posted on Mar 30, 2026

Building an Exchange - Part 4: State, Balances, and Fees

Managing balances, reserved funds, trade settlement, and maker-taker fees inside a deterministic Python exchange engine.

Posted on Mar 28, 2026

Building an Exchange - Part 3: The Matching Engine

Exploring how a Python matching engine processes orders, sweeps the order book, handles fills, and turns user commands into authoritative events.

Posted on Mar 27, 2026

Building an Exchange - Part 2: The Limit Order Book

Exploring how a Python matching engine organizes bids, asks, price levels, FIFO queues, and cancellations using price-time priority.

Posted on Mar 25, 2026

Building an Exchange - Part 1: Domain Primitives

Designing the foundational types behind a deterministic Python matching engine, including ticks, lots, assets, instruments, and market sides.

Posted on Mar 21, 2026
ac

© 2026 Amar Cutura

LinkedIn GitHub