Copy buy/sell failure alert (WS)

Copy buy/sell failure alert

After subscribing to copy buy/sell failure notifications ("follow_buy_fail" & "follow_sell_fail"), a message will be sent when a copy buy or sell 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": "follow_order",
		"subSource": null,
		"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

  • 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

Last updated