Code Implementation — Matching Engine
Implement the Stock Brokerage matching engine, Trade records, and StockExchange facade in Python and Java — the price-time priority algorithm that matches buy and sell orders, handles partial fills, and orchestrates the complete trading pipeline.