XChange-stream is a Java library providing a simple and consistent streaming API for interacting with Bitcoin and other crypto currency exchanges via WebSocket protocol. It is build on top of of XChange library providing new interfaces for streaming API. User can subscribe for live updates via reactive streams of RxJava library.
When system is loaded, bids and asks do not always get created, and since there is no synchronization we arrive in getOrderBook with bids.get(cuurencyPair) & asks.get(cuurencyPair) = null and message.getType().equals(L2UPDATE)
When system is loaded, bids and asks do not always get created, and since there is no synchronization we arrive in getOrderBook with bids.get(cuurencyPair) & asks.get(cuurencyPair) = null and message.getType().equals(L2UPDATE)