XChange is a Java library providing a streamlined API for interacting with 60+ Bitcoin and Altcoin exchanges providing a consistent interface for trading and accessing market data.
What is the meaning to create a new instance and then reassign it?
I think that instead of creating a new instance (useless cause then anyway is reassigned) should be thrown an exception cause the orderbook is compromised if the ID of the message is not in sequence with the local ID that was saved from the previous message. Instead, in this case, the user is ignoring that its orderbook messages are out of order and not in sync. Very dangerous imho if the goal is to recreate a local orderbook and keep in sync.
Hello again, another issue in cex.io streaming is in the function
in class CexioStreamingMarketDataService.OrderBookUpdateConsumer
First, a new instance of orderBookSoFar is created and then anyway is overwritten by
What is the meaning to create a new instance and then reassign it? I think that instead of creating a new instance (useless cause then anyway is reassigned) should be thrown an exception cause the orderbook is compromised if the ID of the message is not in sequence with the local ID that was saved from the previous message. Instead, in this case, the user is ignoring that its orderbook messages are out of order and not in sync. Very dangerous imho if the goal is to recreate a local orderbook and keep in sync.