Design a stock exchange system. There is a list of stocks given with following attributes
MediumLet's design a simplified stock exchange system. Imagine a bustling marketplace where buyers and sellers come together to trade stocks. Our system will manage stock orders, match compatible buy and sell orders, and track the state of the market. We need to carefully consider concurrency since multiple traders might be interacting with the system simultaneously. The system should handle different types of orders and be extensible to support new order types or trading strategies in the future. Order matching should be efficient and fair, simulating a real-world stock exchange. We'll also need to track trade executions and update stock prices accordingly.
Requirements
Interview Simulation
Experience a realistic interview conversation. The interviewer will ask clarifying questions,and you'll reveal your understanding of the requirements.
Let's start by understanding the scope. What are the core functionalities this system needs to provide?
💡 Interview Tip
Identify the Actors (Who uses the system?) and their Use Cases (What are they trying to achieve?). Start with the 'Happy Path' scenarios.