Separate price priority from time priority
A price-ordered map can select the best bid or ask, while a VecDeque inside each level preserves FIFO order for orders at that price. Each structure handles one part of price-time priority.
The FIFO level is implemented. The full bid/ask indexes and their interaction with matching are still part of the target design, so the page separates the current data structure from the planned order book. A BTreeMap is a natural fit for ordered prices, while VecDeque keeps arrival order local to one price.











