Mock Interviewer

Ask Coach

Ask Coach
Clarify requirements before you design — kept separate from your stage notes.

Tap a question to start, or type your own below.

Cryptocurrency Exchange System Design

Visual Problem Diagram

Cryptocurrency Exchange System Design architecture diagram

Scenario

You submit a sell order while Bitcoin drops 15 percent in ten minutes, expecting it to meet the best waiting price and to wait behind earlier orders at that same price. The painful failure is when a later order is filled first, because two machines each kept their own list of waiting orders and did not share one sequence.

Stuck on where to start? Ask Coach

Clarify this problem here, or open Pathway Coach if you want a prep plan first.

Free Coach trial
How should I start prep?

A trader places an order at a chosen price. They can also place an order at the current price. They can cancel an order that has not traded. They see the waiting buy orders and the waiting sell orders. A trade updates both balances. They can deposit coins and wait until outside confirmations say the coins arrived. They can withdraw coins. They can watch the price move live.

You need to explain how one trading pair is matched so an earlier order at a better price wins. You need to explain how an order is saved before the trader is told it was accepted. You need to explain how a trade changes both balances together. You need to explain how a deposit is credited only after those outside confirmations arrive. You need to explain how the wallet that can send coins right away stays small. Running a blockchain node can stay thin.

Constraints

Functional

A trader can place or cancel an order. They can see waiting buys and sells. Trades match. Balances update. They can deposit and withdraw. Live prices go out to people watching.

Non-functional

A match finishes in under 10 milliseconds. Orders at the same price are filled in the order they arrived. Trading stays up about 99.99% of the time. The wallet that can send coins immediately holds only a small share of customer coins.

Scale

About 1 million users. A busy pair peaks around 50,000 orders a second, and that order flow is the heavy write. Daily traded volume is in the billions.

Stages ahead

1Requirement Analysis
2API Design
3High-Level Design
4HLD Extensions
5Trade-offs

Not ready to design yet?

Try the free Coach trial — ask how to prep, what to practice first, or how InterviewCrafted works. Sign in when you want to start this problem.

Try Coach free

Log in to start practicing

Preview the problem below. Sign in to start your timed session, save progress, and use the AI coach.

Want full access now? View Pro pricing