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 $\{p,v_2\}$ and then manually aggregate orders when I need, say, a
bestBid
value
Is there any analytical insight that can be gained from the actual size of the orders? If there is, can you point me to some literature in this field? Thanks.
Please note: there is nothing in the feed to indicate who the order came from and what order has been filled - all I have are the prices and volumes.