System Design Question Preview
Design a service that sits between clients and a third-party stock broker API. Clients submit buy or sell orders with a stock symbol, quantity, and deadline. The service forwards the order to the broker, tracks its status, and automatically cancels it if the deadline arrives before the order is fully filled.