title: OrderBook DB Design
body: <p><em>The OrderBook is filled with buy and sell orders. Updates, new orders may execute trades.</em></p>
  
  <p>I can't seem to find any examples of implementation.</p>
  
  <p>We could give each order an id, and checkExecute orders one by one.  But we want something that will scale to thousands of active orders.</p>
  
  <p>We can sort the prices to get the orders that will be executed (because they overlap).  But we have to be careful and execute only in the order in which the orders were received :)  </p>
  
  <p>Thoughts?</p>