Problem
Design a stock trading platform that validates buying power, submits limit orders to an exchange, and processes fills
- Avoid overdrafts when concurrent orders compete for the same account funds
- Detect and resolve orders stuck due to exchange timeouts or lost callbacks
- Enforce exchange authority when cancel requests race against incoming fills
Key Test Points
- Serializable isolation
- Reconciliation poller
- Idempotency keys
Spot an issue or have a suggestion?