CyberPunkMetalHead / Binance-News-Sentiment-Bot

This is a fully functioning Binance trading bot that takes into account the news sentiment for the top 100 crypto feeds. If you like this project consider donating though the Brave browser to allow me to continuously improve the script.
MIT License
1.57k stars 290 forks source link

DOGEUSDT #14

Closed sprototles closed 3 years ago

sprototles commented 3 years ago

getting following error when buying DOGE

Traceback (most recent call last): File "D:\Downloads\Schneider\ScriptingPath\Crypto\Binance-News-Sentiment-Bot-main\news-analysis.py", line 447, in buy(compiled_sentiment, headlines_analysed) File "D:\Downloads\Schneider\ScriptingPath\Crypto\Binance-News-Sentiment-Bot-main\news-analysis.py", line 348, in buy test_order = client.create_test_order(symbol=coin+PAIRING, side='BUY', type='MARKET', quantity=volume[coin+PAIRING]) File "D:\Program_files\Python\Python39\lib\site-packages\binance\client.py", line 1633, in create_test_order return self._post('order/test', True, data=params) File "D:\Program_files\Python\Python39\lib\site-packages\binance\client.py", line 295, in _post return self._request_api('post', path, signed, version, kwargs) File "D:\Program_files\Python\Python39\lib\site-packages\binance\client.py", line 242, in _request_api return self._request(method, uri, signed, kwargs) File "D:\Program_files\Python\Python39\lib\site-packages\binance\client.py", line 220, in _request kwargs['data']['signature'] = self._generate_signature(kwargs['data']) File "D:\Program_files\Python\Python39\lib\site-packages\binance\client.py", line 175, in _generate_signature m = hmac.new(self.API_SECRET.encode('utf-8'), query_string.encode('utf-8'), hashlib.sha256) AttributeError: 'NoneType' object has no attribute 'encode'