Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

Binance API suddenly stops working #415

Open
JamesDee13 opened this issue Jan 27, 2022 · 2 comments
Open

Binance API suddenly stops working #415

JamesDee13 opened this issue Jan 27, 2022 · 2 comments

Comments

@JamesDee13
Copy link

JamesDee13 commented Jan 27, 2022

Hi all,
I'm using BinanceAPIWebSocketClient for streaming candlestick data and it is working just fine. But since couple of hours ago, it is suddently not working anymore as it won't print new candlestick data and I can't received any news data, it's just totally blank and keep going to next sessions of code and taking very long time like 10mins to run to the end of the code without any errors, the console won't found any errors at all, it is just stopped working. Anyone knows what's happening ?
ps: I tried client.ping() but it did not give any responses, just blank console and taking about 5 mins to run in console without any errors. Binance server or Binance java API false ?

@luckuny
Copy link

luckuny commented Jan 28, 2022

client.onAggTradeEvent(symbol.toLowerCase(), new BinanceApiCallback() {
@OverRide
public void onResponse(final AggTradeEvent response) {
System.out.println(response);
}

@Override
public void onFailure(final Throwable cause) {          // **it will fine your bug**
    System.err.println("Web socket failed");
    cause.printStackTrace(System.err);
}

});

@JamesDee13
Copy link
Author

I would check on your suggestion. thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants