Design an Order Book with Exchange BBO and NBBO

Implement an Order Book data structure. Each order update contains an exchange name exchange, a price, a quantity delta quantity, and a side.

Maintain the aggregated quantity for ever...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: