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

Decimal Error #13

Open
CatchMeIfUCant opened this issue Oct 8, 2021 · 1 comment
Open

Decimal Error #13

CatchMeIfUCant opened this issue Oct 8, 2021 · 1 comment

Comments

@CatchMeIfUCant
Copy link

Hi there.

I appreciate the great work you put in here, and I understand that you've moved on from Coinbase now but I figured there's no harm in me posting my error. Maybe you or somebody else can still help.

I've setup the bot perfectly as far as I'm aware, however when running it I receive the following error:

Traceback (most recent call last):
  File "venv-gdax/gdax_bot/gdax_bot.py", line 236, in <module>
    market_price = (Decimal(order["executed_value"])/Decimal(order["filled_size"])).quantize(quote_increment)
decimal.InvalidOperation: [<class 'decimal.DivisionUndefined'>]

I've tried running a buy for both 100 EUR and 100.00 EUR and both times I get the same error. I figured maybe the decimal needed to be included like so, but unfortunately not.

Any ideas?

@JetzeMellema
Copy link

Having the same problem. It used to work though so I expect this issue was introduced after an update.

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

2 participants