Difficulty: Medium
Category: systems
Practice quant interview questions from top firms including Jane Street, Citadel, Two Sigma, DE Shaw, and other leading quantitative finance companies.
Topics: systems, c++, state-machine, design-pattern
High-frequency trading systems require efficient state management to process market data streams with minimal latency. By maintaining the state of the order book and yielding trade events only when matches occur, systems can optimize resource usage similar to lazy evaluation patterns. This problem simulates a matching engine using a stateful functor to process orders and generate trade prices. Task Implement the TradeGenerator class to act as a simplified matching engine for a continuous double
Practice this medium developer interview question on MyntBit - the all-in-one quant learning platform with 200+ quant interview questions for Jane Street, Citadel, Two Sigma, and other top quantitative finance firms.