Back to problems

Trade Processor with Subscribe / Unsubscribe

Object-Oriented Programming · Bloomberg · Hard

Requirements Create a class in C++, Java, or Python that provides the following interface: Before implementing anything, establish the intended behavior for these points: A call to subscribe(tradeFilter, callback) presumably records a subscription for trades matching the filter, then calls callback(trade) for each matching trade until that subscription is removed. Decide whether symbol matching is exact, prefix-based, or pattern-based. Unless the interviewer specifies…

Checking your access…