This Binance trading bot detects new coins as soon as they are listed on the Binance exchange and automatically places sell and buy orders. It comes with trailing stop loss and other features. If you like this project please consider donating via Brave.
I got this error when trying to buy the new coin listed.
"New coins detected: [{'symbol': 'GALAUSDT', 'price': '0.05380000'}, {'symbol': 'GALABUSD', 'price': '0.05300000'}, {'symbol': 'GALABNB', 'price': '0.00013000'}, {'symbol': 'GALABTC', 'price': '0.00000123'}]
Preparing to buy GALAUSDT
Traceback (most recent call last):
File "D:\BinanceBot\auth\main.py", line 188, in
main()
File "D:\BinanceBot\auth\main.py", line 148, in main
price = get_price(coin['symbol'], pairing)
File "D:\BinanceBot\auth\main.py", line 33, in get_price
return client.get_ticker(symbol=coin+pairing)['lastPrice']
File "C:\Python39\lib\site-packages\binance\client.py", line 1185, in get_ticker
return self._get('ticker/24hr', data=params, version=self.PRIVATE_API_VERSION)
File "C:\Python39\lib\site-packages\binance\client.py", line 371, in _get
return self._request_api('get', path, signed, version, kwargs)
File "C:\Python39\lib\site-packages\binance\client.py", line 334, in _request_api
return self._request(method, uri, signed, kwargs)
File "C:\Python39\lib\site-packages\binance\client.py", line 315, in _request
return self._handle_response(self.response)
File "C:\Python39\lib\site-packages\binance\client.py", line 324, in _handle_response
raise BinanceAPIException(response, response.status_code, response.text)
binance.exceptions.BinanceAPIException: APIError(code=-1121): Invalid symbol."
Do you know why this happened and how to solve it?
Hi!
I got this error when trying to buy the new coin listed. "New coins detected: [{'symbol': 'GALAUSDT', 'price': '0.05380000'}, {'symbol': 'GALABUSD', 'price': '0.05300000'}, {'symbol': 'GALABNB', 'price': '0.00013000'}, {'symbol': 'GALABTC', 'price': '0.00000123'}] Preparing to buy GALAUSDT Traceback (most recent call last): File "D:\BinanceBot\auth\main.py", line 188, in
main()
File "D:\BinanceBot\auth\main.py", line 148, in main
price = get_price(coin['symbol'], pairing)
File "D:\BinanceBot\auth\main.py", line 33, in get_price
return client.get_ticker(symbol=coin+pairing)['lastPrice']
File "C:\Python39\lib\site-packages\binance\client.py", line 1185, in get_ticker
return self._get('ticker/24hr', data=params, version=self.PRIVATE_API_VERSION)
File "C:\Python39\lib\site-packages\binance\client.py", line 371, in _get
return self._request_api('get', path, signed, version, kwargs)
File "C:\Python39\lib\site-packages\binance\client.py", line 334, in _request_api
return self._request(method, uri, signed, kwargs)
File "C:\Python39\lib\site-packages\binance\client.py", line 315, in _request
return self._handle_response(self.response)
File "C:\Python39\lib\site-packages\binance\client.py", line 324, in _handle_response
raise BinanceAPIException(response, response.status_code, response.text)
binance.exceptions.BinanceAPIException: APIError(code=-1121): Invalid symbol."
Do you know why this happened and how to solve it?
main.zip