Quant Interview Practice Questions
题目详情
In quantitative trading systems, order management logic must reliably handle the lifecycle of orders to prevent unintended duplicate executions and manage risk. A critical operation is the cancel-replace, which atomically cancels an existing active order and submits a new one. Implementing this state transition correctly ensures accurate tracking of live, filled, and canceled orders within an exchange simulator or execution gateway. Task Implement an OrderManager class that maintains the state