3
votes
3answers
275 views

Is it worth preserving orderbook structure when building it from individual orders?

Say I'm building an order book and two bids come in at price $p$ and volumes $v_1$ and $v_2$. Which option is better To store the order as $\{p, v_1+v_2\}$ or To store the order as $\{p,v_1\}$ and ...