Simulator Auto Sniper (POST)

Simulator Auto Sniper

This API is used to create multi-chain token sniper tasks in simulator

URL

Header: X-API-KEY

(Please do not disclose your API Key to anyone. If you are at risk of losing it, please refresh it.)

Notes

  1. X-API-KEY can be obtained in your "Dashboard", go to check: Dashboard

  2. In the paging type interface, use the next field in the return value as the query parameter for the next page (if next == null, it means that paging has ended)

Request Example

{
	"enabled": true,
	"chain": "solana",
	"token": "8EPRkSsLRQ3vLZUyKHohMHQ7F7FN8fmVBeViNwznEHgJ",
	"walletId": "",
	"expireDelta": 360000000,
	"buySettings": {
		"buyAmountUI": "0.1",
		"priorityFee": "0.00005",
		"gasFeeDelta": 5,
		"maxFeePerGas": 100,
		"maxSlippage": 0.1,
		"minLiquidity": 0
	},
	"sellSettings": {
		"enabled": true,
		"stopEarnEnabled": true,
		"stopEarnMode": "profit_percent",
		"stopEarnPercentOrPrice": 1,
		"stopLossEnabled": true,
		"stopLossMode": "loss_percent",
		"stopLossPercentOrPrice": 0.5,
		"autoSell": false,
		"priorityFee": "0.00005",
		"gasFeeDelta": 5,
		"maxFeePerGas": 100,
		"maxSlippage": 0.1
	}
}

Request Response

{
	"err": false,
	"res": {
		"id": "lus8bfug0040i2"
	},
	"docs": "https://dbotx.com/docs"
}

Request Parameters

  • enabled: Task enable status, true/false

  • chain: Blockchain (solana/ethereum/base/bsc/tron)

  • token: Token contract address to be sniped

  • walletId: The simulator's walletId defaults to ""

  • expireDelta: Task duration, max 864000000 (milliseconds)

  • buyAmountUI: Amount used to snipe (ETH/SOL/BNB/TRX)

  • priorityFee: Priority Fee (SOL), valid for Solana, empty string means use auto priority fee

  • gasFeeDelta: Extra added gas (Gwei), valid for EVM

  • maxFeePerGas: When the base gas exceeds this value, no transaction will execute (Gwei), valid for EVM chains

  • maxSlippage: 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: Liquidity needs to be greater than this value to trigger sniping (USD)

  • enabled (sellSettings): Sell task enabled status

  • stopEarnEnabled: Whether to enable take profit

  • stopEarnMode: How to stop profit, currently supports "profit_percent", which means stop profit by percentage

  • stopEarnPercentOrPrice: Take Profit ratio, 0.5 means sell when 50% up

  • stopLossEnabled: Whether to enable stop loss

  • stopLossMode: How to stop loss, currently support " profit_percent", means stop loss by percentage

  • stopLossPercent: OrPriceStop Loss ratio (0.00-1.00), 0.5 means sell when 50% down

  • autoSell: Whether to auto sell at the end of the task without triggering the take profit or stop loss

Last updated