bitrich-info / xchange-stream

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.
Apache License 2.0
413 stars 222 forks source link

[CoinbasePro] orderbook - this bug again #512

Closed mdvx closed 4 years ago

mdvx commented 4 years ago

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)

badgerwithagun commented 4 years ago

Any answer on that, @mdvx ?

mdvx commented 4 years ago

Looks like bitfinex dont always send the snapshot, I had not considered that but it makes total sense.

badgerwithagun commented 4 years ago

OK, I'll merge this in