A BookBook order is filled with purchase and sale orders. Updates, new orders can carry out transactions.
I can not find implementation examples.
We could give each order id and checkExecute order one by one. But we want something that will scale to thousands of active orders.
We can sort the prices to get the orders that will be executed (because they overlap). But we must be careful and execute only in the order in which orders were received :)
Thoughts?
, , , , .
, , , OneTick, DB , / , CEP .
( ), OpenTSDB, , DB LGPLv3+. , , OneTick, (OneTick ) , .
BookBook, , : , ? ? / ..
, OrderBook, :
LMAX
Python OrderedDict OrderBook. , /.