kdmukai / gdax_bot

gdax_bot - Micro dollar cost averaging for crypto
MIT License
58 stars 26 forks source link

Decimal Error #13

Open CatchMeIfUCant opened 2 years ago

CatchMeIfUCant commented 2 years ago

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 commented 1 year ago

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