Could somebody explain why I have this error: InvalidOperation: quantize result has too many digits for current context?
I tried searching everywhere but still have no clue...
Here is the link to the bot: https://tradewave.net/strategy/OSHtpplBsh
the best way to avoid this is to change your initial input of data to the float class.
ltc_btc_price = float(data.ltc_btc.price)
btc_usd_price = float(data.btc_usd.price)
ltc_usd_price = float(data.ltc_usd.price)
When you move to float class you'll see what happened:
You created an "impossibot" due to your limit order logic and your profit exceeded the maximum number of digits allowed to the portfolio.
[2016-01-09 13:00:00] >> Starting portfolio:
[2016-01-09 13:00:00] >> [10000.00 USD]
[2016-01-09 13:00:00] >> Closing portfolio:
[2016-01-09 13:00:00] >> [54969750506161258716.3760482 USD]
[2016-01-09 13:00:00] >> Profit: 54969750506161248716.3760482 USD
Many thanks for clarification!