Websocket connection to Binance API

Hi,

I am trying to connect to Binance API to get messages with the info. I am not getting the recurring messages at all but everything seems okay. I should get a stream of ‘message’ as well as ‘opened connection’ and ‘closed connection’. I only get ‘closed connection’.

Any ideas? Thanks!

Hello, this is a programming question about usage of “websocket” library, which is a bit out of this forum’s context, here we focus on the trading api endpoints/streams issues, although maybe this quick script can give you some ideas: https://github.com/binance-exchange/binance-toolbox-python/blob/master/coin_futures/test_user_data_stream_request.py