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

Issue with FIDAUSDT #5

Closed
jarrodjay opened this issue Sep 30, 2021 · 2 comments · Fixed by #7
Closed

Issue with FIDAUSDT #5

jarrodjay opened this issue Sep 30, 2021 · 2 comments · Fixed by #7
Assignees
Labels
bug Something isn't working

Comments

@jarrodjay
Copy link

I'm a bit confused with what happened. I had it set to buy 50 usdt. (had enough in my spot wallet). In my trade history, I can see that I purchased 7.4 FIDA at 6.8 USDT (roughly $50). However, bot is telling me I didn't purchase due to insufficient funds. It also didn't store a trade, so didn't sell. Thoughts?

[DEBUG] 2021-09-30 12:00:00,729: PROCESSING NEW TICKER:
{"ticker": "FIDAUSDT", "base_ticker": "FIDA", "quote_ticker": "USDT"}.
[DEBUG] 2021-09-30 12:00:00,730: [BINANCE]      Preparing to buy FIDAUSDT.
[DEBUG] 2021-09-30 12:00:01,788: [BINANCE]      Placing [LIVE] Order...
[ERROR] 2021-09-30 12:00:05,101: Traceback (most recent call last):
  File "/root/trading-bot-new-coins/bot/bot.py", line 272, in process_new_ticker
    self.config, ticker=new_ticker, size=size, side="BUY", **kwargs
  File "/usr/local/lib/python3.6/dist-packages/decorator.py", line 232, in fun
    return caller(func, *(extras + args), **kw)
  File "/root/trading-bot-new-coins/util/decorators.py", line 113, in retry_decorator
    logger,
  File "/root/trading-bot-new-coins/util/decorators.py", line 41, in __retry_internal
    return f()
  File "/root/trading-bot-new-coins/broker/broker.py", line 280, in place_order
    api_resp = super(Binance, self).create_order(**params)
  File "/usr/local/lib/python3.6/dist-packages/binance/client.py", line 1387, in create_order
    return self._post('order', True, data=params)
  File "/usr/local/lib/python3.6/dist-packages/binance/client.py", line 374, in _post
    return self._request_api('post', path, signed, version, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/binance/client.py", line 334, in _request_api
    return self._request(method, uri, signed, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/binance/client.py", line 315, in _request
    return self._handle_response(self.response)
  File "/usr/local/lib/python3.6/dist-packages/binance/client.py", line 324, in _handle_response
    raise BinanceAPIException(response, response.status_code, response.text)
binance.exceptions.BinanceAPIException: APIError(code=-2010): Account has insufficient balance for requested action.
@cdalton713
Copy link
Owner

To clarify, the purchase did go through on Binance's side, despite the bot giving the Account has insufficient balance for requested action. error?

@cdalton713 cdalton713 self-assigned this Sep 30, 2021
@cdalton713
Copy link
Owner

Removing the retry option from purchases. I'm thinking the coin was correctly purchased but the method was retried for a second time for some reason, which is when you got this message.

@cdalton713 cdalton713 mentioned this issue Sep 30, 2021
@cdalton713 cdalton713 linked a pull request Sep 30, 2021 that will close this issue
@cdalton713 cdalton713 reopened this Oct 1, 2021
@cdalton713 cdalton713 added the bug Something isn't working label Nov 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants