Module 6 · Interview Prep: A Stock Exchange Matching Engine Lesson 45 of 54

Exchange Follow-ups and the Invariant Replay

Self-trades, fairness between members, new stocks, and four ticks.

2:04 clip1:43:41–1:45:45 in the full courseWatch on YouTube

Transcript

24 sentences · select one to jump there

Check your understanding

A firm's own buy order is about to match its own sell. What does self-trade prevention do?

Choose one answer

Lesson notes

The rule

Anything that changes matching, even adding a stock, goes through the sequencer so it replays