返回题库

Quant Interview Practice Questions

专题
architecture & logic
难度
L3
来源
MyntBit

题目详情

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