binance-exchange/binance-java-api

Live subscription not live, update once every second only?

mcmushroom opened this issue · 0 comments

Hi there,

I use the following code to get live subscription to tickers using the API.

ProductSubscription subscription = ProductSubscription.create().addTicker(CurrencyPair.ETH_BTC).build();
exchangeStream.connect(subscription).blockingAwait();
exchangeStream.enableLiveSubscription();
Disposable tickers = exchangeStream.getStreamingMarketDataService().getTicker(CurrencyPair.ETH_BTC).subscribe(ticker -> System.out.println(ticker));

However, I see the updates coming exactly once every second, but I need live updates.

Is there a possibility to get the updates of the tickers instantly, and not in intervals of one second?

Thank you for your help.