Whenever you're ready, walk me through how you'd approach this.
Design a stock broker system.
Asked in the System design stage. Clarify the intended scope before designing, including order intake, account and portfolio data, risk checks, execution, market-data processing, and whether machine learning is required. Explain how you would build an end-to-end production system, including data flows, online and batch components, scale assumptions, reliability, security, and evaluation. Address how the design changes for low-latency order handling and delayed outcomes. Discuss model failure, feature drift, training-serving skew, auditability, and safe fallbacks.