Fast buy/sell failure alert (WS)
Fast buy/sell failure alert
After subscribing to quick buy/sell failure notifications ("swap_buy_fail" & "swap_sell_fail"), a message will be sent when a quick 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": "swap_order",
"subSource": null,
"chain": "solana",
"block": null,
"hash": null,
"createAt": 1748250289686,
"timestamp": null,
"wallet": "8eaBbELUHQYC8tWzfug72PjHjxJERLQ5rrRKEtpPU6o8",
"type": "buy",
"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
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