[Binance][Streaming] Binance trades streaming doesn't work
Version: 5.0.7
I've encountered some trouble with streaming Binance. I subscribe at connect time with a ProductSubscription,. but I don't seem to be getting any messages through at all via subscribe(). I'm running the most basic example in Android:
new Thread(() -> {
ExchangeSpecification spec = StreamingExchangeFactory.INSTANCE.createExchange(BinanceStreamingExchange.class).getDefaultExchangeSpecification();
BinanceStreamingExchange exchange = (BinanceStreamingExchange) StreamingExchangeFactory.INSTANCE.createExchange(spec);
ProductSubscription subscription = ProductSubscription.create().addTrades(CurrencyPair.BTC_USDT).build();
exchange.connect(subscription).blockingAwait();
exchange.getStreamingMarketDataService()
.getTrades(CurrencyPair.BTC_USDT)
.subscribe(trade -> {
Log.i(TAG, "Trade: " + trade);
});
}).start();
The same exact code refactored with KrakenStreamingExchange works 100% fine. Likewise, directly subscribing to the Binance WebSockets API without the use of this library works fine as well.
The same here. I tried Bitfinex, CoinbasePro, Kraken etc. and everywhere I am getting messages. But from Binance nothing. There is just message: Subscribing to channel btcusd@trade and then nothing
same here
Same problem here
It's working, at least with latest 5.0.14-SNAPSHOT version.