optimize orderbook