DBot Guide
DBot OfficialDBot DashboardDBot API
  • DBot | Automated DEX Trading
    • 🤖About DBot
    • 📖Getting Started
    • 🌈Forever Free
    • 🔥Referral Program
  • FAQ
    • ❓Help
      • 💡About DBot
      • 💡About Copy Trading/Sniping
      • 💡About Slippage
      • 💡About Pump
      • 💡Wallet Login
      • 💡Account Rebinding
      • 💡EVM transaction failed
      • 💡SOL transaction failed
      • 💡Case Explanation
    • 🚨Safety Tips
      • Security Alert
      • Device Management
      • API KEY
      • API Whitelist IPs
      • Google Authenticator (2FA)
    • 🔖Changelog
  • DEX Trading Bot
    • 🔥Auto Copy Trading
      • Copy Filter
      • Copy Records
      • Copy Group
      • Copy Templates
      • Token Blacklist
    • 🔥Auto Limit Order
    • 🔥Auto Sniper
    • 🔥Fast Buy/Sell
    • 🔥Auto TP/SL
    • 🔫Pump Trading
    • ⏰Trigger Order
      • Opening Sell
      • Dev Sell
    • 💰Sol Bribery
    • 📊Holding/Assets
    • 📈Marketing
    • 📑Billing
    • 📖User Audit
    • ⚙️DBot Settings
      • Multi Language
      • Default Chain
      • Default Wallet/Trading Fee Wallet
      • Cancel default restrictions
      • Template settings
      • Google Authenticator (2FA)
      • Security Alert
      • Device Management
  • Telegram Bot
    • 🤖Telegram Bot (Trading)
      • 💡How to Bind/Rebind
      • 🌈Referral Rewards
      • 👛Wallet Management
      • 📊Holding/Assets
      • 🔥Fast Buy/Sell
      • 🔥Copy Trading
      • 🔥Limit Order
      • 🔥Auto Sniper
      • 🔥Auto TP/SL
      • 💰Opening Sell
      • 💰Dev Sell
      • 💰Auto Buy
      • 💹Multi-wallet buy/sell
      • 🚨Security Alert
      • 📌Token Multisender
      • 💵Token Collection
      • 💥Token Burner
      • 💡Template Settings
      • 🌎Multi Language
    • 🤖Telegram Bot (Alert)
      • Single-Wallet Monitoring
      • Multi-Wallet Monitoring
    • 🤖Telegram Bot (Group)
  • Discord Bot
    • 🤖Discord Bot (Group)
  • DBot Free Tools
    • 📈DEX Simulator
    • 📌Token Multisender (free/no limit)
    • 💵Token Collection (free/no limit)
    • 💥Token Burner (Solana)
    • 👛Wallet Transfer(only gas fee)
    • 💰Smart Money Monitoring
  • DBot Developer
    • Automated DEX API
    • DBot APIs
      • Wallet Management API
        • Wallet Import (POST)
        • Wallet Delete (DELETE)
        • Wallet Info (GET)
      • Task Management API
        • Create Task
          • Fast Buy/Sell (POST)
          • (Muti)Fast Buy/Sell (POST)
          • Create Copy Trading (POST)
          • Create Limit Order (POST)
          • Create Opening Sell (POST)
          • Create Dev Sell (POST)
          • Create Auto Sniper (POST)
        • Edit Task
          • Edit Copy Trading (POST)
          • Edit Limit Order (PATCH)
          • Edit Trailing Stop (PATCH)
          • Edit Opening Sell (PATCH)
          • Edit Dev Sell (PATCH)
        • Enable/Disable Task
          • Disable Copy Trading (PATCH)
          • Disable Limit Order (PATCH)
          • Disable Trailing Stop (PATCH)
          • Disable Opening Sell (PATCH)
          • Disable Dev Sell (PATCH)
          • Disable Auto Sniper (PATCH)
          • (Multi)Disable Copy Trading (PATCH)
          • Disable Trailing Stop Tasks (PATCH)
          • Disable Dev Sell Tasks (PATCH)
          • Disable Auto Snipers (PATCH)
          • Disable Opening Sell Tasks (PATCH)
        • Delete Task
          • Delete Copy Trading (DELETE)
          • Delete Limit Order (DELETE)
          • Delete Limit Orders (POST)
          • Delete All Limit Orders (DELETE)
          • Delete Trailing Stop (DELETE)
          • Delete Trailing Stop Tasks (POST)
          • Delete All Trailing Stop (DELETE)
          • Delete Opening Sell (DELETE)
          • Delete Dev Sell (DELETE)
          • Delete Auto Sniper (PATCH)
        • Group
          • Create Group (POST)
          • Edit Group (PATCH)
          • Delete Group (DELETE)
          • Group Info (GET)
      • Transaction Info API
        • Query Task
          • Swap Order Info (GET)
          • Copy Trading Tasks (GET)
          • Limit Orders (GET)
          • Auto Sniper Tasks (GET)
          • Opening Sell Tasks (GET)
          • Dev Sell Tasks (GET)
          • TP/SL Tasks-Fast Buy/Sell (GET)
          • TP/SL Tasks (copy trading) (GET)
          • Trailing Stop Tasks (GET)
        • Query Trading Record
          • Trading Records (GET)
          • Copy Records (GET)
          • Fast Buy & Sell Records (GET)
      • Simulator API
        • Simulator Auto Sniper (POST)
        • Simulator Copy Trading (POST)
        • Simulator Limit Order (POST)
        • Simulator Fast Buy / Sell (POST)
        • Simulator Account Info (GET)
      • Batch Tool API
        • Token Multisender (POST)
        • Token Collection (POST)
      • Enterprise API
        • Wallet Assets (GET)
        • Pool Info (SOL) (GET)
        • Pool Info (EVM) (GET)
    • DBot WebSocket
      • Trade WebSocket
        • Subscribe to trade results (WS)
        • Fast buy/sell success alert (WS)
        • Fast buy/sell failure alert (WS)
        • Limit buy/sell success alert (WS)
        • Limit buy/sell failure alert (WS)
        • Take profit success alert (WS)
        • Take profit failure alert (WS)
        • Stop loss success alert (WS)
        • Stop loss failure alert (WS)
        • Trailing stop success alert (WS)
        • Trailing stop failure alert (WS)
        • Copy buy/sell success alert (WS)
        • Copy buy/sell failure alert (WS)
    • API KEY
    • API Whitelist IPs
  • DBot Cobuild
    • 🤝Contact Us
    • 😎Join Alpha
Powered by GitBook
On this page
  • Stop loss failure alert
  • Notes
  • Results
  • Response Parameters
  1. DBot Developer
  2. DBot WebSocket
  3. Trade WebSocket

Stop loss failure alert (WS)

Stop loss failure alert

After subscribing to fast buy/sell and copy trading stop-loss failure notifications ("swap_stop_loss_fail" & "follow_stop_loss_fail"), a message will be sent when a stop-loss sell via fast buy/sell or copy trading fails to execute (available for Plus / Pro / Enterprise)

Notes

DBot has deployed WS CDN acceleration networks in multiple countries and regions worldwide. However, developers still need to monitor the WebSocket connection status, implement their own reconnection logic, and ensure that a heartbeat subscription is sent at least once every minute (recommended every 30–55 seconds). Otherwise, the DBot message subscription system will automatically disconnect the connection due to timeout in order to free up WS resources.

Results

{
	"method": "tradeResultNotify",
	"result": {
		"id": "mb4v2t4t0006jc",
		"state": "fail",
		"source": "limit_order",
		"subSource": "swap_stop_loss",
		"chain": "solana",
		"block": null,
		"hash": null,
		"createAt": 1748250289686,
		"timestamp": null,
		"wallet": "8eaBbELUHQYC8tWzfug72PjHjxJERLQ5rrRKEtpPU6o8",
		"type": "fail",
		"token": "DzoDrrK9h1bfjf1dU9VhURthvPSMF8ihpc3ZGYf9pump",
		"pair": "6F6wZRAgKRwYDkU8TeKQstk6YJByyuPsCSKf8B2XcaDv",
		"symbol": "ITRUMP",
		"errorCode": "E_OTHERS",
		"errorMessage": "simulate:AccountNotFound\n"
	}
}

Response Parameters

  • method: Currently fixed as "tradeResultNotify"

  • id: Task id

  • state: Order state (init/processing/done/fail/expired)

  • source: Source of the trade: “swap_order” means from fast buy / sell, “limit_order” means from limit order or TP/SL, "trailing_stop_order" means from trailing stop order, “follow_order” means from copy trading

  • subSource: Source of take profit and stop loss: “follow_take_profit” means take profit from copy trading, “follow_stop_loss” means stop loss from copy trading, “swap_take_profit” means take profit from fast buy / sell, “swap_stop_loss” means stop loss from fast buy / sell, "follow_trailing_stop" means trailing stop from copy trading, "swap_trailing_stop"means trailing stop from fast buy / sell

  • chain: Blockchain (solana/ethereum/base/bsc/tron)

  • block: Block number in which the trade occurred

  • hash: Transaction hash

  • createAt: Transaction creation time

  • timestamp: Time of successful transaction execution

  • wallet: Wallet address

  • type: Transaction type, including “buy” and “sell”

  • pair: Trading pair address

  • errorCode: Error type

  • errorMessage: Error message

PreviousStop loss success alert (WS)NextTrailing stop success alert (WS)

Last updated 5 days ago