Fast buy/sell success alert (WS)

Fast buy/sell success alert

After subscribing to fast buy/sell success notifications ( "swap_buy_success" & "swap_sell_success"), a message will be sent when a fast 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": "mb0k1w6q000xza_sell",
		"state": "done",
		"source": "swap_order",
		"subSource": null,
		"chain": "solana",
		"block": 341892965,
		"hash": "5aG2WmSr3HJsgwDWb4R1YDNmdwtXJhF7wQKrdJ6vNo38YnYFnvHQCvyojVMKMDiGqHTpQWPLTngD6Xzq5jNrcFnu",
		"createAt": 1747989979800,
		"timestamp": 1747983980,
		"wallet": "8eaBbELUHQYC8tWzfug72PjHjxJERLQ5rrRKEtpPU6o8",
		"type": "sell",
		"token": "B8CZf6Vma5BdViv4C8ndAtb4LbHFSDEdRH47GuEzpump",
		"pair": "5aGh67ZCHyqmSR6NosgSb2JTGJz2EEb1SGTkSxncRM8a",
		"symbol": "suwi",
		"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

  • 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

  • decimals: Token decimals

  • totalSupply: Total token supply

  • mintAuthority: Is the token mintable

  • freezeAuthority: Is the token freezeable

  • priceUsd: Token price (USD)

  • dbotFee: Trading fee charged for this transaction

Last updated