Copy buy/sell success alert (WS)
Copy buy/sell success alert
After subscribing to copy buy/sell success notifications ("follow_buy_success" & "follow_sell_success"), a message will be sent when a copy buy or sell 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": "m78h2zqy0odx0e_mbhflitnqxijl7",
"state": "done",
"source": "follow_order",
"subSource": null,
"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
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