gdax_bot icon indicating copy to clipboard operation
gdax_bot copied to clipboard

Decimal Error

Open CatchMeIfUCant opened this issue 3 years ago • 1 comments

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?

CatchMeIfUCant avatar Oct 08 '21 14:10 CatchMeIfUCant

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

JetzeMellema avatar Feb 05 '23 11:02 JetzeMellema