Trailing stop success alert (WS)

Trailing stop success alert

After subscribing to fast buy/sell and copy trading trailing stop success notifications ("swap_trailing_stop_success" & "follow_trailing_stop_success"), a message will be sent when a trailing stop via fast buy/sell or copy trading is successfully executed (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": "mbhdedrd79rraz",
		"state": "done",
		"source": "trailing_stop_order",
		"subSource": "swap_trailing_stop",
		"chain": "solana",
		"block": 341892965,
		"hash": "5aG2WmSr3HJsgwDWb4R1YDNmdwtXJhF7wQKrdJ6vNo38YnYFnvHQCvyojVMKMDiGqHTpQWPLTngD6Xzq5jNrcFnu",
		"createAt": 1747989979800,
		"timestamp": 1747983980,
		"wallet": "8eaBbELUHQYC8tWzfug72PjHjxJERLQ5rrRKEtpPU6o8",
		"type": "buy",
		"token": "B8CZf6Vma5BdViv4C8ndAtb4LbHFSDEdRH47GuEzpump",
		"pair": "5aGh67ZCHyqmSR6NosgSb2JTGJz2EEb1SGTkSxncRM8a",
		"symbol": "drip",
		"send": {
			"info": {
				"contract": "B8CZf6Vma5BdViv4C8ndAtb4LbHFSDEdRH47GuEzpump",
				"name": "sweet cute adorable",
				"symbol": "suwi",
				"decimals": 6,
				"icon": null,
				"totalSupply": "1000000000000000",
				"tokenProgram": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
				"mintAuthority": null,
				"freezeAuthority": null,
				"createAt": 1747987142630
			},
			"amount": "2434393716"
		},
		"receive": {
			"info": {
				"contract": "So11111111111111111111111111111111111111112",
				"name": "Wrapped SOL",
				"symbol": "SOL",
				"decimals": 9,
				"icon": "https://assets-cdn.trustwallet.com/blockchains/solana/assets/So11111111111111111111111111111111111111112/logo.png",
				"totalSupply": null
			},
			"amount": "902010"
		},
		"priceUsd": 0.00006904040303561152,
		"dbotFee": "4510"
	}
}

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

Last updated