Number of Orders in the Backlog
Keep unmatched buys in a max-heap and unmatched sells in a min-heap, matching each new order against the best opposite order.
Keep unmatched buys in a max-heap and unmatched sells in a min-heap, matching each new order against the best opposite order.