This is a fully functioning Binance trading bot that measures the volatility of every coin on Binance and places trades with the highest gaining coins If you like this project consider donating though the Brave browser to allow me to continuously improve the script.
MIT License
3.41k
stars
774
forks
source link
Pausebotmod stop working if there is a connection time out. #196
The error is similar when there was an error connecting to binance, but now it is with scanner.tradingview.com and when it happens it disable pausebotmod, if the session was stopped because a bad market it never changes status because the mod is dead.
HTTPSConnectionPool(host='scanner.tradingview.com', port=443): Max retries exceeded with url: /crypto/scan (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7ff0651049e8>, 'Connection to scanner.tradingview.com timed out. (connect timeout=10)'))
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
self.run()
File "/usr/lib/python3.7/threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "/user/Binance-volatility-trading-bot/pausebotmod.py", line 48, in do_work
paused = analyze()
File "/user/Binance-volatility-trading-bot/pausebotmod.py", line 33, in analyze
ma_sell = analysis.moving_averages['SELL']
AttributeError: 'dict' object has no attribute 'moving_averages'
The error is similar when there was an error connecting to binance, but now it is with scanner.tradingview.com and when it happens it disable pausebotmod, if the session was stopped because a bad market it never changes status because the mod is dead.
HTTPSConnectionPool(host='scanner.tradingview.com', port=443): Max retries exceeded with url: /crypto/scan (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7ff0651049e8>, 'Connection to scanner.tradingview.com timed out. (connect timeout=10)')) Exception in thread Thread-1: Traceback (most recent call last): File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner self.run() File "/usr/lib/python3.7/threading.py", line 865, in run self._target(*self._args, **self._kwargs) File "/user/Binance-volatility-trading-bot/pausebotmod.py", line 48, in do_work paused = analyze() File "/user/Binance-volatility-trading-bot/pausebotmod.py", line 33, in analyze ma_sell = analysis.moving_averages['SELL'] AttributeError: 'dict' object has no attribute 'moving_averages'