Not Enough Balance Error on Deal Close (TAO/USDT) - Adaptive Close with Auto Rebalancing

Timestamp: 04/12/2025, 03:38:35 UTC

Exchange: BITGET TAOUSDT (Spot Trading)

Deal ID: 6926a1d3b03ce9558954ab0f

Order ID: D-TP-z2OCNtKLhIm9jMDmduSpEVVCYzbMVy

Order Type: Deal Close (TP - Take Profit)

Side: Sell


:red_circle: Error Details

Error Message:
Error: Not enough balance
Order id: D-TP-z2OCNtKLhIm9jMDmduSpEVVCYzbMVy
Side: sell
Price: 306.1
Order type: deal close
Balance total: 0.08405900000000001 TAO
Balance free: 0.002059 TAO
Required: 0.082 TAO

Root Cause Analysis: The bot attempted to close a deal at the TP price, but reported insufficient balance despite the total balance (0.084059 TAO) being greater than the required amount (0.082 TAO).

Metrica Base (TAO) Quote (USDT)
Deal Current 0.079 35.9811
Theoretical Balance 0.083 (fee: -0.000283) 34.7323 (fee: -0.0588244)
Real Balance 0.084059 2418.98311242
Difference -0.001342 N/A

Configuration Details

Experimental Features Enabled:

  • :white_check_mark: Reduce Dust (fee order)

  • :white_check_mark: Auto Rebalancing

  • :white_check_mark: Adaptive Close

Trading Pair: TAO/USDT

We have received your bug report regarding the “Not Enough Balance Error on Deal Close” for Deal ID: 6926a1d3b03ce9558954ab0f. We are investigating the issue and will provide an update shortly.

This is self hosted version, right?

Free is not enough to cover required.
In any case the error is not generated by Gainium. but returned from exchange.
You enabled adaptive close, but I assume the 0.002 TAO and current USDT will be lower than exchange minimum, so order size automatically increased.