Quant Interview Practice Questions
题目详情
In electronic trading systems, an order lifecycle is rigorously tracked using finite state machines to ensure consistency between the trading desk and the exchange. A robust order state machine prevents invalid state transitions, such as attempting to cancel an already filled order, which could lead to severe financial consequences. Task Implement an OrderStateMachine class that tracks the state of multiple orders and validates state transitions. Orders are identified by a unique integer orderI