Hephyrius / binance_futures_bot

A bot that trades leveraged USDT futures markets on binance.
299 stars 123 forks source link

HTTPSConnectionPool #38

Open breadacker opened 2 years ago

breadacker commented 2 years ago

HTTPSConnectionPool(host='fapi.binance.com', port=443): Max retries exceeded with url: /fapi/v1/klines?symbol=ETHUSDT&interval=1h&limit=95 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x000001C571C7F160>, 'Connection to fapi.binance.com timed out. (connect timeout=None)'))

I checked the request weight api hard limit (1200 request weight per minute). Even though I am way below under limit with 95 candles and put some time.sleep() in the code, I still get this mind blowing error. I also calculated the other rest api functions weights as well. Any one knows how to handle this issue?