Cannot cancel deal

Note: Before posting a bug, please check the bot’s event logs for possible errors and double-check that the bot configuration should have allowed the expected action (e.g., checking price filters, indicator conditions, etc.).

Bug details:

  • Bot URL → Trading Bot | Gainium App
  • [Optional] Steps to reproduce → cancel deal
  • Expected result → Successful cancellation of deal since it was manually closed in exchange

We have received your bug report regarding the inability to cancel a deal for the bot with URL Gainium app. We will investigate this issue and provide an update shortly. Thank you for reporting this.

You are restarting futures bot with 500 pairs. Each restart we are checking current position config and set requried margin type and leverage if needed.
Bitget limits for those operations are pretty low and they are per user id. So if you restart multiple bots it will take longer to finish restart.
With settings change bot also performs restart.

how about cancelling? I am just cancelling 10 deals do you check all 500 pairs in cancelling deals?

I am just restarting 1 bot. Do I need to stop the bot before I can cancel the deals?

I can see multiple settings change, restart events.
If bot in restarting state, it wont be able to process cancel deal before restart is finished.

because no restart event was successful, I need to update something in the bot so it will place the order again for my live deals.

As i can see from previous restarts it can took up to 10 minutes to finish positions check

yes, but since it encounters error for the manually closed deal in exchange it cancels all order, so I need to restart it again and again. I been doing it for more than 24 hours now.

These restart commands that you sendt to the bot, they are queued and executed one by one.
if bot showing you position error, because you closed position manually you shouldnt restart the bot, only cancel the deal.
But since there are many restarts you should give it time to finish and then cancel

That’s the problem, I can’t cancel the deal. I can’t let the bot sit for long since I have so many live deals.

To make it short, the root cause of this issue is the difficulty of cancellation of deal that was closed in exchange.

  1. Un-cancellable deal
  2. I need to update something in the bot, it restarts
  3. once it restarts, it cancels all orders and place it again
  4. Error due to number 1 since the position is no longer existing
  5. Bot cancel all other order due to number 4
  6. I updated something so bot will place the order for live deals and sometimes I need to manually close the deal again because the restart is slow resulting to more un-cancellable deals

repeat 2, 3, 4, 5 6 forever

Bot cannot cancel all order due to error in some deal. I assume the error is that deal cannot place TP order, but this is not affect other deals.

The problem is bitget has really low limits on some operations so it can take longer operate the bot with high number of pairs on futures.
If its possible, you can try to split 500 pairs to multiple bots.

I updated restart logic specifically for multicoin bitget futures.
Currently the restart loop is finished. You can cancel the deals that no longer on exchange.