Topic · Trading & Microstructure
← All topicsOrder Books & Mechanics
30 articles · 3 checkpoints · 17 deeper reads · 10 reference notes
Every article, in reading order
plant a flag as you finish eachRead these first
The matching engine is the only place a trade actually happens. It is a deterministic, single-threaded loop that takes messages in a fixed sequence, applies each one to an in-memory book, and emits the fills and quote updates the whole market then sees.
A passive order is a race between two clocks, the queue in front of you draining, and the price walking away. Estimating who wins is what decides whether you post or cross.
The mid-price sits halfway between the bid and the ask no matter how lopsided the book is. The microprice weights it by queue sizes, giving a fair value that leans toward the thin side, which is the side about to be eaten.
Then the rest