I’m using python-binance 0.7.4 and to poll every 60s all my portfolio assets using the get_account function which basically sends the request to Binance API which appears in my log file with the API response :
[DEBUG] - connectionpool.py (line: 452) - https://api.binance.com:443 “GET /api/v3/account?timestamp=1630493485845&signature=8ae86da227e306a7c1c979845315c5578bdf6f72dc345b37714c98 HTTP/1.1” 200 2109
In the same time I have also a multi websocket fetching real time prices
After few 4 to 8 hours I got the error message from the API and the connection is closed.
I’ve check the web but not found really explanations for that : It doesn"t sound like I’m reaching API rates limits as the message is usually explicite then.
Could it be an automatic disconnection and I need to periodically close and reopen my connections ?
Could it be a lost connection from my internet provider during few seconds ?
Could it be I’m considered as attacking their API doing periodic such requests ?
Any clue ?
Thanks & cheers