In Python I’m running 256 websockets all at once from binance server. Data stream got stopped or "closed" after 5 mins, is there anyway around this?

Using asyncio and websockets, I’m subscribed to 256 websockets all at once from binance server. I need all this data for instant analysis and decsion making. I got a msg that your connection has been closed. I don’t want the code to sleep. Is there anyway I can trick the server and keep subsribing without interuption. Your help is highly appretiated.

link = ‘wss://stream.binance.com:9443/ws/[email protected]_1m’

Source: Python-3x Questions

LEAVE A COMMENT