Skip to content

Restoring after failures

If the bot lost its connection to the exchange for a while, it checks every active trade against the exchange itself once the connection is back and sends you a report. Your orders stayed on the exchange all that time and kept working without it.

What it is

While there was no connection, something could have happened on the exchange: an entry filled, a take-profit or a stop triggered, or you closed the position yourself. The bot did not know about it. So the first thing it does after reconnecting is compare its own picture of the trade with what is really on the exchange, and put the trade in order.

What you will see

The message “🔄 Sync after reconnection. Trade updates” with a line for every trade where something changed, and at the end “🔄 Sync after reconnection completed” with the line “Trades checked: …”.

What happened while there was no connectionWhat the bot does and what it writes
The entry order filledRecords the fill and keeps running the trade
The entry order was cancelled by hand on the exchange“ℹ️ Entry order was cancelled on the exchange. There is no open position — the trade has been finished and removed from active ones.”
The position was closed by hand“ℹ️ Position closed manually on the exchange. Finishing the trade: cancelling remaining orders and recording the result.”
The Take-Profit filled“✅ Take-Profit filled on the exchange during the disconnection. Position reduced to …. The trade has been reconciled with the exchange.”
The Stop-Loss disappeared while the position was open“🛡️ Stop-Loss disappeared from the exchange (removed manually or cancelled) while the position was open. The bot restored protection: stop at …, size …. The position is protected again.”
The stop could not be restored“🚨 WARNING: Stop-Loss disappeared from the exchange and could NOT be restored automatically. Reason: … The position is currently UNPROTECTED — place a stop manually on the exchange or close the position.”
An order is not among the active ones“ℹ️ Reconciling the trade with the exchange after reconnection. The … order is not among the active ones — most likely it was filled or cancelled while the connection was being restored. This is normal: just wait, the bot will update the status itself.”

What you should not do

  • Do not cancel or move orders on the exchange just in case — the bot checks them itself, and changes made by hand it will have to sort out separately.
  • Do not create the trade again: if the entry did not fill, it is still on the exchange.
  • Do not tap commands twice. While the check is running the bot replies that it is being restored: “The command will be executed after recovery is complete.” — the command will run by itself when the check is over.

When you do have to step in

  • A 🚨 message about a position without protection — place a stop by hand on the exchange or close the position.
  • The bot writes: “Your trade ended up in an unexpected state. We have fixed all errors and suggest a recovery scenario for your trade” — open the trade card, read the list of actions and tap Retry execution.
  • “Your trade is in an unrecoverable state. Please close this trade” — close the trade in the bot and check the position on the exchange.
  • The line “ℹ️ Needs review: …” in the report — look into the trade and at the exchange; if it is unclear, write to support.