Terminal - Smart Short trade with 3 TP's doesn't work

Bug info:
When I try to create a smart trade (Short) with 3 TP’s the order for the third TP (the lowest target) is never created and a confusing error message is shown in events:

Error: Not enough balance Order id: D-MTP-Y6zpZWtVZKm8Tk6dL4uu8JzDEOhMt, side: buy, price - 0.452 , order type: deal close, balance total - 3666.7143882 USDT, free - 769.4226882 USDT, required - 1364.0456000000001 USDT

I can see on the exchange and in the terminal that the two other orders are placed correctly. I also see on the exchange that the 769 $ mentioned in the error message are available and free on the exchange.

Addendum: The coin that produced the error was XLM/USDT on Bybit. I tried two times with the same result. With another coin (DOGE/USDT) it worked fine.

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