Bot Error when close deal

Bug info: Not enough balance

Not enough balance Order id: D-TP-1n40Cq7ZsRzDtK3CudOjHXMzxdP9V5, side: sell, price - 106.08 , order type: deal close, balance total - 0.4719 AAVE, free - 0.4719 AAVE, required - 0.5369 AAVE

  • Bot URL → Gainium app
  • [Optional] Steps to reproduce →
  • Expected result →

There was an order in the bot with id CMB-GR-WRi9YFbs72DReTjSTxu25jwHIbKR

It was filled, but we didn’t received update information. When bot was processing another order it tried to cancel the order, but cancel method returns an error. Error means that order already filled or cancel. In this case but did 10 attempts within 2 minutes to get order info by id. The response from Kucoin was validation.queryOrder.orderNotExist. After 10 attempts order was marked as canceled in our db

Now after I sent API request to get the order I got full order response

I have added log to double check the paylod, but I’m pretty sure the problem is on kucoin side.