You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
preparing to buy 0.001996 BTC with USDT at 50112.05000000
Traceback (most recent call last):
File "/Users/rami/scripts/Binance-News-Sentiment-Bot/news-analysis.py", line 489, in <module>
buy(compiled_sentiment, headlines_analysed)
File "/Users/rami/scripts/Binance-News-Sentiment-Bot/news-analysis.py", line 389, in buy
test_order = client.create_test_order(symbol=coin+PAIRING, side='BUY', type='MARKET', quantity=volume[coin+PAIRING])
File "/usr/local/lib/python3.9/site-packages/binance/client.py", line 1723, in create_test_order
return self._post('order/test', True, data=params)
File "/usr/local/lib/python3.9/site-packages/binance/client.py", line 323, in _post
return self._request_api('post', path, signed, version, **kwargs)
File "/usr/local/lib/python3.9/site-packages/binance/client.py", line 265, in _request_api
return self._request(method, uri, signed, **kwargs)
File "/usr/local/lib/python3.9/site-packages/binance/client.py", line 243, in _request
kwargs['data']['signature'] = self._generate_signature(kwargs['data'])
File "/usr/local/lib/python3.9/site-packages/binance/client.py", line 198, 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'```
The text was updated successfully, but these errors were encountered:
Getting the following error:
The text was updated successfully, but these errors were encountered: