Puzzle Spree

Puzzle Spree

Data Structure Design: Order Book

Build an Order Book to Simulate Market Data

Kuai Yu's avatar
Kuai Yu
Jan 15, 2025
∙ Paid

An order book is a key component of trading systems. It keeps track of buy and sell orders for a given asset, organized by price levels. Your task is to implement a simplified version of an order book with the ability to add, modify, cancel, and query orders.

Order Book

An order book is divided into two sides:

  • Buy side: Tracks orders to buy an asset. The t…

Keep reading with a 7-day free trial

Subscribe to Puzzle Spree to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Puzzle Spree · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture