Bug info: The trading bot will not start because the available quote amount is larger than required.
The error message says that the available amount is 1114 USDT and required is only 1110.
- Bot URL → Gainium app
- [Optional] Steps to reproduce →
- Expected result → The bot should start since there is more USDT available than required.
We don’t request the available balance before sending the order, doing that would require extra calls and delays. Instead, we save the last known balance, then we sent the order to exchange, and if the exchange replies with not enough funds then we use the last saved amount to show for your reference. In most cases this is accurate but if a transaction happened from the time we saved the balance to now, it will not be accurate.
That is to say that the error comes directly from the exchange, so you really don’t have enough usdt.
Good morning.
But I just sold Base to get enough USDT (and a little more as you can see) so there should not have been any delay.
Like I said this is the response of the exchange the minute we send the limit order. Some times they do phantom locks where usdt is temporarily unavailable despite not being in limit orders. There is nothing we can do about it.
You could check directly on the exchange and see how much it let’s you trade, and compare it to the amount you need.
That is what I believe I did. I sold Avax to get USDT for the bot to buy back AVAX.
Yesterday there were 20 minutes between when the order was executed and when it was visible in Gainium. It isn’t easy to do a good job under those circumstances.