node-binance-api icon indicating copy to clipboard operation
node-binance-api copied to clipboard

futuresSubscribe websocket for all symbols

Open bcfsunali opened this issue 5 years ago • 2 comments

Hi,

Please advise how to run futuresSubscribe WebSocket for all symbols...

Thanks,

Sunali

bcfsunali avatar Nov 16 '20 09:11 bcfsunali

Please advise how to run futuresSubscribe WebSocket for all symbols...

console.log(binance.futuresSubscriptions()) Does this function work for you? I always get an empty object. I asked this question about a year ago, but I still couldn't figure out why it doesn't work for me.

Kuzmich100kM avatar Dec 05 '20 13:12 Kuzmich100kM

Please advise how to run futuresSubscribe WebSocket for all symbols...

console.log(binance.futuresSubscriptions()) Does this function work for you? I always get an empty object. I asked this question about a year ago, but I still couldn't figure out why it doesn't work for me.

@jaggedsoft, after reading the codes, i can tell you that it won't work for everyone.

the base method futuresSubscribeSingle and futuresSubscribe doesn't save the opening websocket, so futuresSubscriptions always return {}.

https://github.com/jaggedsoft/node-binance-api/blob/950d773a5f2c3a61c6e29b53e3af57594921a239/node-binance-api.js#L865-L915

liesauer avatar May 19 '23 08:05 liesauer