What happens if an order fails?

Whenever a trade or close order fails, MagicTradeBot immediately broadcasts notifications to ensure you are aware and can take action if needed.


๐Ÿ”น Types of Failure Messages

  1. Order Execution Failed

    • Triggered when the bot cannot place a new trade
    • Broadcast includes:

      • Symbol (e.g., BTCUSDT)
      • Intended Direction (Long/Short)
      • Error Reason (e.g., insufficient balance, exchange rejection)
  2. Close Order Failed

    • Triggered when an existing trade cannot be closed
    • Broadcast includes:

      • Symbol
      • Order ID
      • Error Details (e.g., network timeout, exchange API issue)


๐Ÿ”น Why This Is Important

  • Provides immediate awareness of issues affecting trade execution
  • Allows you to manually intervene if a critical order fails
  • Ensures account risk is monitored even during failures
  • Prevents missed stop-loss, take-profit, or DCA executions


๐Ÿ”น Key Takeaway

If an order fails, MagicTradeBot broadcasts:

  • Order execution failed โ†’ symbol, intended direction, error reason โœ…
  • Close order failed โ†’ symbol, order ID, error details โœ…

These notifications give you real-time visibility of trading failures, helping you protect your account and maintain control over active positions.

๐Ÿ“Ž Related Topics