gdax_bot
gdax_bot copied to clipboard
Decimal Error
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?
Having the same problem. It used to work though so I expect this issue was introduced after an update.