Quant Interview Practice Questions
题目详情
In quantitative trading systems, a circuit breaker protects the exchange gateway by temporarily halting order flow when consecutive rejections occur due to broken connections or invalid parameters. Implementing this logic as a finite state machine prevents flooding the venue, avoiding severe exchange penalties and ensuring controlled recovery through test orders. Task Implement the CircuitBreaker class to manage order flow state using a Finite State Machine with three states: CLOSED, OPEN, and