binance-futures-connector-java
binance-futures-connector-java copied to clipboard
I have tried two solutions. 1.Restarting regularly oldClient.closeAllConnections(); ThreadUtil.sleep(5000); startBinanceWs(); // reconnect But I got an error: the connection will enter onFailureCallback 2.I want to use the official website's method:...
![Uploading image.png…]() WebSocketConnection.onFailure, ``` @Override public void onFailure(WebSocket ws, Throwable t, Response response) { logger.error("[Connection {}] Failure", connectionId, t); // Wouldn't it be better to just return null and return...
i recommend filtering the null value for parameters joinning.
`final static String HMAC_SHA256 = "HmacSHA256"; //convert byte array to hex string private static String bytesToHex(byte[] bytes) { final char[] hexArray = "0123456789abcdef".toCharArray(); char[] hexChars = new char[bytes.length * 2];...
Hello, this PR is my feature proposition. Currently this library is not able to detect lost connection with Binance Websocket API. I have exposed pingInterval attribute of **OkHttpClient** as optional...


搬运 https://github.com/binance/binance-connector-java 中相关代码到 https://github.com/binance/binance-futures-connector-java