Bot Error (not enough balance to place sell order), but looks like because it sold the base partially twice

Bug info:
This is a simple DCA Asap Long Bot with this conditions :

  • Exchange : KuCoin
  • Fee : ignored (paid using KCS)
  • fully automatic, no manual intervention
  • rescue partial order not enabled
  • adaptive close not enabled
  • Bot URL ā†’ Gainium app

  • Timeline (check screenshot) :

    • Bot closed a deal
    • Bot opened a new deal
    • Bot threw an error, couldnt place sell order due to not enough balance
  • What I think happened

    • Sell order was placed for 16.60 KAIA, but only 14.69 was sold
    • Later on another 1.91 KAIA was sold to complete the deal
    • New deal is opened, bought 5.43 KAIA.
    • Somehow the bot sold another 1.91 KAIA for no reason, and caused the deficit
    • It tried to place sell order for 5.43 KAIA and failed.
  • Expected result ā†’
    There are several issues Iā€™d like to highlight :

    1. First of all, this error should also appear on the app/web notification (it didnt). What concerned me is: if there are lots of notif in Telegram this error may go unnoticed, and the deal will be in limbo since no TP/sell order is set.

    2. I think the main issue here is why the double partial sell.
      What triggers the second sell of 1.91 KAIA? Maybe there should be another check before it tried to sell it again? Will enabling Adaptive Close prevent the double sell?

    3. If Adaptive Close is not enabled (which is the case here), then I guess we have no choice but to rely on error notif and do manual intervention. In this case I manually bought 2 KAIA and edit the deal TP to force the deal to place the sell order in the exchange.

It has been fixed, thanks!

1 Like