goranjovic55 / Binance-Trading-Bot

Binance trading bot based CyberPunkMetalHeads Binance-volatility-trading-bot
MIT License
98 stars 37 forks source link

'dict' error #10

Closed inspectorpacket-OG closed 3 years ago

inspectorpacket-OG commented 3 years ago

Using USDT as pair

Traceback (most recent call last): File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/usr/lib/python3.8/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "/home/pbp/goranjovic55/Binance-Trading-Bot/pausebotmod.py", line 59, in do_work paused = analyze() File "/home/pbp/goranjovic55/Binance-Trading-Bot/pausebotmod.py", line 44, in analyze ma_analysis = analysis.moving_averages[TYPE] AttributeError: 'dict' object has no attribute 'moving_averages'

Row-Bear commented 3 years ago

Figured out the cause, not yet solution. pausebotmod.py has SYMBOL = parsed_config['trading_options']['PAIR_WITH'] + 'USDT' if we pair with USDT that won't work. Not sure what symbol pausebot should check then, but BTCUSDT at least gets rid of the error