ViewBlock / binance-api-node

:chart: A complete and heavily tested wrapper with typings for the Binance API.
657 stars 502 forks source link

Websocket was closed before the connection was estabilshed with binance-api-node candles #663

Open pxr-mm opened 1 month ago

pxr-mm commented 1 month ago

client.ws.candles(symbol, interval, candle => { console.log('candle--', candle) });

this error: node:events:495 throw er; // Unhandled 'error' event Error: WebSocket was closed before the connection was established Emitted 'error' event on WebSocket instance at: at emitErrorAndClose (D:\ww\workspace\webs\quants_app\QuantBotServer\node_modules\ws\lib\websocket.js:1033:13)