Used to get the user's all auto sniper tasks
| Free | Plus | Pro | Enterprise | 积分消耗 |
|---|---|---|---|---|
| ✅ | ✅ | ✅ | ✅ | 0 |
URL
wss://api-bot-v1.dbotx.com/trade/ws/
Notes
To ensure the availability and stability of the WebSocket connection, a heartbeat subscription must be sent at least once every minute (recommended every 30–55 seconds), otherwise the system will automatically disconnect the timeout link
Request Example
{
"id": 1761291309, // Call ID; the response returns the same ID as the request
"method": "listSnipeOrders", // Method to query snipe order tasks
"params": {
"page": 0, // Page number (0 / 1 / 2 ...)
"size": 1, // Page size (10 / 20, max 20)
"chain": "solana", // Blockchain (solana/ethereum/base/bsc/tron)
"state":"done" // Order status: init (initial), processing, done (completed), fail, expired
}
}Response Data
{
"method": "rpcResponse", // RPC response
"id": 1761291309, // Call ID
"result": {
"err": false, // Request result status; false means succeeded, true means failed
"res": [
{
"id": "mb0k1w6q000xza", // Snipe order task id
"accountId": "lz99kwxp0006q0", // User ID
"enabled": true, // Task enable status, true/false
"chain": "solana", // Chain (solana/ethereum/base/bsc/tron)
"token": "B8CZf6Vma5BdViv4C8ndAtb4LbHFSDEdRH47GuEzpump", // Token address
"tokenInfo": { // Token information
"contract": "B8CZf6Vma5BdViv4C8ndAtb4LbHFSDEdRH47GuEzpump",
"createAt": 1747987142630,
"name": "sweet cute adorable",
"symbol": "suwi",
"decimals": 6,
"totalSupply": "1000000000000000",
"icon": null,
"tokenProgram": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
"mintAuthority": null,
"freezeAuthority": null
},
"walletId": "m6056qp3001crx", // Wallet ID used, obtainable via "Wallet Info API"
"expireAt": 1748389496498, // Task expiration time (ms timestamp)
"expireDelta": 399600000, // Task validity duration, max 432000000 (ms)
"buySettings": {
"gasFeeDelta": 5, // Extra added gas (Gwei), valid for EVM
"maxFeePerGas": 100, // When the base gas exceeds this value, no transaction will execute (Gwei), valid for EVM chains
"maxSlippage": 0.3, // MAX slippage tolerance (0.00-1.00), when buying, it represents the difference between the actual price and the expected price. When selling, it represents the difference between the expected price and the actual price, the difference multiplier = 1/(1-slippage), 0.5 means a maximum of 2 times the accepted spread, 1 means unlimited spreads
"minLiquidity": 0,
"retries": 0, // Number of retries after failure (0-10)
"concurrentNodes": 1, // Number of concurrent nodes (1-3)
"jitoEnabled": false, // "true"means enable anti-MEV mode (Solana & Ethereum & Bsc)
"jitoTip": "", // Bribery tip used by Anti-MEV (Solana), required when “jitoEnabled” or “customFeeAndTip” is true (null indicates automatic priority fee / bribery tip)
"customFeeAndTip": false, // "true"means both the priority fee (priorityFee) and the bribery tip (jitoTip) fields are valid, and the system will execute the transaction based on the provided values (null indicates automatic priority fee / bribery tip). "false" means that in turbo mode, only the priority fee (priorityFee) is valid, while in anti-MEV, only the bribery tip (jitoTip) is valid, and the system will allocate them automatically
"buyAmountUI": 0.001, // Buy amount (ETH/SOL/BNB/TRX)
"priorityFee": 0.00001 // Priority Fee (SOL), valid for Solana, empty string means use auto priority fee
},
"sellSettings": {
"enabled": true, // "true" means to enable copy sell
"maxFeePerGas": 100, // When the base gas exceeds this value, no transaction will execute (Gwei), valid for EVM chains
"maxSlippage": 0.31, // MAX slippage tolerance (0.00-1.00), when buying, it represents the difference between the actual price and the expected price. When selling, it represents the difference between the expected price and the actual price, the difference multiplier = 1/(1-slippage), 0.5 means a maximum of 2 times the accepted spread, 1 means unlimited spreads
"gasFeeDelta": 5, // Extra added gas (Gwei), valid for EVM
"autoSell": false, // Whether to auto sell at the end of the task without triggering the take profit or stop loss
"stopEarnEnabled": true, // Whether to enable take profit
"stopLossEnabled": true, // Whether to enable stop loss
"stopLossPercentOrPrice": 0.15, // Stop Loss ratio (0.00-1.00), 0.5 means sell when 50% down
"stopEarnPercentOrPrice": 0.5, // Take Profit ratio, 0.5 means sell when 50% up
"stopEarnMode": "profit_percent", // How to stop profit, currently supports "profit_percent", which means stop profit by percentage
"stopLossMode": "loss_percent", // How to stop loss, currently support " profit_percent", means stop loss by percentage
"retries": 0, // Number of retries after failure (0-10)
"concurrentNodes": 1, // Number of concurrent nodes (1-3)
"jitoEnabled": false, // "true"means enable anti-MEV mode (Solana & Ethereum & Bsc)
"jitoTip": null, // Bribery tip used by Anti-MEV (Solana), required when “jitoEnabled” or “customFeeAndTip” is true (null indicates automatic priority fee / bribery tip)
"customFeeAndTip": false, // "true"means both the priority fee (priorityFee) and the bribery tip (jitoTip) fields are valid, and the system will execute the transaction based on the provided values (null indicates automatic priority fee / bribery tip). "false" means that in turbo mode, only the priority fee (priorityFee) is valid, while in anti-MEV, only the bribery tip (jitoTip) is valid, and the system will allocate them automatically
"useMidPrice": true, // "true"enables Anti-Spike mode using the 1-second mid-price as trigger price (not 100% guaranteed)
"priorityFee": 0.00001 // Priority Fee (SOL), valid for Solana, empty string means use auto priority fee
},
"buyState": "done", // Buy state: init, processing, done, fail, expired
"buyStateUpdateAt": 1747989962305,
"sellState": "done", // Sell state: init, processing, done, fail, expired
"sellStateUpdateAt": 1747989983081,
"createAt": 1747989896498, // Creation time (ms timestamp)
"updateAt": 1747989896498,
"buyHash": "5VrMXFXf4S4sMgDmhpe9Ct248Ue84qojt1TDg7tDHdGEZgfuQGEuXR3PvtSsqYJYAtUJAyaMhgP1Lqa4L9TveqsZ", // Buy transaction hash
"buyTxPriceUsd": 0.00008166821029947154, // Buy transaction price (USD)
"sellHash": "4uAudbuxpDsEtrWYWAFDaiAkcSZzEWKZbhqMNFfmWQgGoeLAzjtwd2CUJFQDpzrUUrbQKJornf6cUnrWqbDqRDMJ", // Sell transaction hash
"sellTxPriceUsd": 0.00006904040303561152, // Sell transaction price (USD)
"buyErrorCode": "", // Buy error type
"buyErrorMessage": "", // Buy error message
"sellErrorCode": "", // Sell error type
"sellErrorMessage": "", // Sell error message
}
]
}
}Example in NodeJS
const WebSocket = require('ws')
function main() {
const ws = new WebSocket('wss://api-data-v1.dbotx.com/trade/ws/', {
headers: {
'x-api-key': 'YOUR_API_KEY',
},
})
ws.on('open', () => {
ws.send(
JSON.stringify({
"id": 1761291309,
"method": "listSnipeOrders",
"params": {
"page": 0,
"size": 1,
"chain": "solana",
"state":"done"
}
})
)
setInterval(() => {
ws.ping()
}, 30000)
})
ws.on('message', res => {
console.log('res:', res.toString('utf-8'))
})
}
main()Example in Python
import asyncio
import websockets
import json
async def main():
uri = "wss://api-data-v1.dbotx.com/trade/ws/"
headers = {"x-api-key": "YOUR_API_KEY"}
msg = {
"id": 1761291309,
"method": "listSnipeOrders",
"params": {
"page": 0,
"size": 1,
"chain": "solana",
"state":"done"
}
}
async with websockets.connect(uri, additional_headers=headers) as ws:
await ws.send(json.dumps(msg))
async def keep_alive():
while True:
await ws.ping()
await asyncio.sleep(30)
async def listen_for_messages():
async for message in ws:
print(message)
await asyncio.gather(keep_alive(), listen_for_messages())
if __name__ == "__main__":
asyncio.run(main())Response data visualization reference

