Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doesn't buy #96

Closed
ghost opened this issue Feb 18, 2022 · 0 comments
Closed

doesn't buy #96

ghost opened this issue Feb 18, 2022 · 0 comments

Comments

@ghost
Copy link

ghost commented Feb 18, 2022

No new coins detected, checking again in 0.3 minute(s)..
No new coins detected, checking again in 0.3 minute(s)..
No new coins detected, checking again in 0.3 minute(s)..
New coins detected: [{'symbol': 'AXSTRY', 'price': '780.50000000'}, {'symbol': 'DARTRY', 'price': '12.82000000'}, {'symbol': 'NEARTRY', 'price': '143.80000000'}, {'symbol': 'IDEXBNB', 'price': '0.00046900'}]
Preparing to buy AXSTRY
Traceback (most recent call last):
  File "/home/dev/binance_trading_bot/main.py", line 189, in <module>
    main()
  File "/home/dev/binance_trading_bot/main.py", line 149, in main
    price = get_price(coin['symbol'], pairing)
  File "/home/dev/binance_trading_bot/main.py", line 34, in get_price
    return client.get_ticker(symbol=coin+pairing)['lastPrice']
  File "/usr/local/lib/python3.10/site-packages/binance/client.py", line 1183, in get_ticker
    return self._get('ticker/24hr', data=params, version=self.PRIVATE_API_VERSION)
  File "/usr/local/lib/python3.10/site-packages/binance/client.py", line 371, in _get
    return self._request_api('get', path, signed, version, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/binance/client.py", line 334, in _request_api
    return self._request(method, uri, signed, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/binance/client.py", line 315, in _request
    return self._handle_response(self.response)
  File "/usr/local/lib/python3.10/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.
@ghost ghost closed this as completed Nov 9, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants