binance-java-api
binance-java-api copied to clipboard
onAggTradeEvent
I try todo the following:
client.onAggTradeEvent("btcusdt", (response ->{
binancePrices.setBtcusdt(response.getPrice());
ThreadSleep();
}));
Simple.. but after about 20sek.. it stops updating the price... why ??
Have the same issue