LUCIT-Systems-and-Development / unicorn-binance-websocket-api

A Python SDK by LUCIT to use the Binance Websocket API`s (com+testnet, com-margin+testnet, com-isolated_margin+testnet, com-futures+testnet, com-coin_futures, us, tr, dex/chain+testnet) in a simple, fast, flexible, robust and fully-featured way.
https://unicorn-binance-websocket-api.docs.lucit.tech/
Other
683 stars 165 forks source link

stream_is_crashing #246

Closed rdvnszn1 closed 2 years ago

rdvnszn1 commented 2 years ago

I want to connect about 50 pairs to get depth5 channel but I got an error like that

I try many version of this library, but not solved, I try it in my local laptop and a powerful azure server, not solved again, it worked with 5-10 pairs but can not connect more, but I used it with that amount pair before (I have problems for 1-2 days)

BinanceWebSocketApiSocket.start_socket(d05116db44f2-fdc4-d94c-9c49-23745395, ['depth5'], ['xrpusdt', 'omgusdt', 'bandusdt', 'mkrusdt', 'avaxusdt', 'dotusdt', 'xtzusdt', 'atomusdt', 'trxusdt', 'reefusdt', 'hotusdt', 'wavesusdt', 'ontusdt', 'linkusdt', 'chzusdt', 'rvnusdt', 'batusdt', 'lrcusdt', 'ltcusdt', 'bchusdt', 'xlmusdt', 'dogeusdt', 'adausdt', 'neousdt', 'eosusdt', 'uniusdt', 'aaveusdt', 'balusdt', 'zilusdt', 'algousdt', 'enjusdt', 'thetausdt', 'ognusdt', 'grtusdt', 'maticusdt', 'crvusdt', 'manausdt', 'solusdt', 'vetusdt', 'ankrusdt', '1000shibusdt', 'icpusdt', 'ftmusdt', 'lptusdt', 'axsusdt', 'ensusdt', 'audiousdt', 'sandusdt', 'aliceusdt', 'tlmusdt', 'galausdt']) - Exception ConnectionClosed - error_msg: sent 1011 (unexpected error) keepalive ping timeout; no close frame received BinanceWebSocketApiManager.stream_is_crashing(d05116db44f2-fdc4-d94c-9c49-23745395)

oliver-zehentleitner commented 2 years ago

Please provide the asked information!

Please read this: https://github.com/LUCIT-Systems-and-Development/unicorn-binance-websocket-api/issues/113

oliver-zehentleitner commented 2 years ago

This is maybe also interesting: https://github.com/LUCIT-Systems-and-Development/unicorn-binance-websocket-api/issues/126

oliver-zehentleitner commented 2 years ago

Maybe you are interested about a depth cache: https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache

oliver-zehentleitner commented 2 years ago

If needed reopen a new issue with all the infos we need.

KissCoderr commented 2 years ago

Exactly, same error. I am using binance_websocket_api_manager.create_stream("arr", "!bookTicker")

It is running on a powerful azure server as well. I tried lots of things, but not able to find a solution. As I can understand, stream is not restarting after crashing due to the connection issues. ping_timeout set to None did not provide a solution, btw.

jmy48 commented 2 years ago

Same error:

Exception ConnectionClosed - error_msg: sent 1011 (unexpected error) keepalive ping timeout; no close frame received BinanceWebSocketApiManager.stream_is_crashing(29ed4cffd186-0f68-1ceb-b5a8-5153f96d)

after running for ~20 minutes with 206 symbols. The program doesn't stop, however. What does it mean? Is it dropping data?