Create Copy Trading (POST)

Create Copy Trading

This API is used to create multi-chain copy trading tasks

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,
	"name": "task name",
	"chain": "solana",
	"dexFilter": [
		"raydium_amm",
		"pump"
	],
	"targetIds": [
		"ECQwEUMk75pxgruroXKTfqMHL4Aoj622vEZxBtYu4gNt"
	],
	"tokenBlacklist": [
		"5rfR98jWph5VhwG7wBJ5ftSfVgX5tGrwNCUAHRPDpump"
	],
	"walletId": "lus8auwp003zvg",
	"groupId": "m53gevri055ird",
	"buySettings": {
		"enabled": true,
		"startHour": 10,
		"endHour": 12,
		"buyAmountType": "follow_amount",
		"maxBuyAmountUI": "0.1",
		"buyRatio": 1.5,
		"maxBalanceUI": 100,
		"reservedAmountUI": 0.01,
		"targetMinAmountUI": 0.1,
		"targetMaxAmountUI": 0.5,
		"minTokenMCUSD": 10000,
		"maxTokenMCUSD": 1000000,
		"maxBuyTax": 0.1,
		"maxSellTax": 0.1,
		"priorityFee": "0.00005",
		"gasFeeDelta": 5,
		"maxFeePerGas": 100,
		"jitoEnabled": true,
		"jitoTip": 0.001,
		"maxSlippage": 0.1,
		"skipFreezableToken": false,
		"skipMintableToken": false,
		"skipDelegatedToken": false,
		"skipNotOpensource": false,
		"skipHoneyPot": false,
		"skipTargetIncreasePosition": false,
		"minBurnedLp": 0.2,
		"minLpUsd": 10000000,
		"minTokenAgeMs": 10000000,
		"maxTokenAgeMs": 100000000,
		"maxTopHoldPercent": 0.5,
		"maxBuyTimesPerToken": 5,
		"maxBuyAmountPerToken": 0.1,
		"buyExist": false,
		"buyOncePerWallet": false,
		"concurrentNodes": 2,
		"retries": 1
	},
	"sellSettings": {
		"enabled": true,
		"startHour": 10,
		"endHour": 12,
		"mode": "mixed",
		"sellAmountType": "all",
		"xTargetRatio": 2,
		"sellSpeedType": "accurate",
		"targetMinAmountUI": 0.1,
		"targetMaxAmountUI": 0.5,
		"stopEarnPercent": 1,
		"stopLossPercent": 0.5,
		"stopEarnGroup": [
			{
				"pricePercent": 0.2,
				"amountPercent": 0.5
			},
			{
				"pricePercent": 0.8,
				"amountPercent": 1
			}
		],
		"stopLossGroup": [
			{
				"pricePercent": 0.2,
				"amountPercent": 0.5
			},
			{
				"pricePercent": 0.8,
				"amountPercent": 1
			}
		],
		"pnlOrderExpireDelta": 86400000,
		"pnlOrderExpireExecute": false,
		"sellMode": "smart",
		"migrateSellPercent": 1,
		"minDevSellPercent": 0.5,
		"devSellPercent": 1,
		"priorityFee": "",
		"gasFeeDelta": 5,
		"maxFeePerGas": 100,
		"jitoEnabled": true,
		"jitoTip": 0.001,
		"maxSlippage": 0.1,
		"concurrentNodes": 2,
		"retries": 1
	}
}

Request Response

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

Request Parameters

  • enabled: Task enable status, true/false

  • name: Name of copy trading

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

  • dexFilter: DEX to be copied, null means all, fill in the name to copy the corresponding DEX transaction, including: raydium_amm,raydium_clmm,raydium_cpmm,meteora_dlmm,meteora_dyn,pump,moonshot,orca_wp,uniswap_v2,uniswap_v3,pancake_v2,sunswap_v2,sunpump,ether_vista

  • targetIds: The wallet address to be copied (up to 10)

  • tokenBlacklist: Blacklist token addresses for the current task (up to 20). Tokens added to the blacklist will not be bought or sold

  • walletId: The id of the wallet to be used

  • groupId: Group id

  • enabled (buySettings): Buy task enable status

  • startHour: Enable time (UTC) for copy buy or sell, after which copy buy or copy sell will be executed every day, can only be entered as an integer between 0 and 23, e.g. 10 for 10:00 (UTC)

  • endHour: Disable time (UTC) for copy buy or sell, before which copy buy or copy sell will be executed every day, can only be entered as an integer between 0 and 23, e.g. 10 for 10:00 (UTC)

  • buyAmountType: Copy buy type, including: "fixed_amount", "fixed_ratio", "follow_amount"

  • maxBuyAmountUI: Max copy buy amount, the minimum is 0.001 SOL, 0.0001 ETH, 0.0001 BNB, and 1 TRX

  • buyRatio: Copy buy ratio (0-10), effective when copy buy type is fixed_ratio

  • maxBalanceUI: Take profit amount (ETH/SOL/BNB/TRX), copy buy will stop when the balance above this amount

  • reservedAmountUI: Stop loss amount (ETH/SOL/BNB/TRX), copy buy will stop when the balance below this amount

  • targetMinAmountUI: In the buy settings, it means the copy buy will only occur when smart money's buy amount is greater than this value; in the sell settings, it means the copy sell will only occur when smart money's sell income is greater than this value

  • targetMaxAmountUI: In the buy settings, it means the copy buy will only occur when smart money's buy amount is less than this value; in the sell settings, it means the copy sell will only occur when smart money's sell income is less than this value

  • minTokenMCUSD: Min market cap, only copying buy tokens above this value

  • maxTokenMCUSD: Max market cap, only copying buy tokens below this value

  • maxBuyTax: Max buy tax (0-1),valid for EVM, only copying buy tokens with buy tax below this value (data from GoPlus, there will be some impact on the copy trading speed after setting this)

  • maxSellTax: Max sell tax (0-1),valid for EVM, only copying buy tokens with sell tax below this value (data from GoPlus, there will be some impact on the copy trading speed after setting this)

  • jitoEnabled: "true" means enable anti-MEV mode (Solana & Ethereum)

  • jitoTip: Bribery tip used by Anti-MEV (Solana)

  • 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)

  • skipFreezableToken: "true" means not to buy freezable tokens

  • skipMintableToken: "true" means not to buy mintable tokens

  • skipDelegatedToken: "true" means not to buy delegated tokens

  • skipNotOpensource: "true" means not to buy not opensource tokens defined by GoPlus, valid for EVM (there will be some impact on the copy trading speed when enabled)

  • skipHoneyPot: "true" means not to buy tokens that defined as honeypots by GoPlus, valid for EVM (there will be some impact on the copy trading speed when enabled)

  • skipTargetIncreasePosition: "true" means not to buy tokens already held by smart money

  • minBurnedLp: Min LP burnt ratio (0-1), only buy tokens with the LP burnt ratio greater than or equal to this value, Raydium(AMM) and Raydium(CPMM) supported

  • minLpUsd: Min liquidity ($), only buy tokens with liquidity greater than or equal to this value

  • minTokenAgeMs: Min token age (milliseconds), only buy tokens with creation time greater than or equal to this value

  • maxTokenAgeMs: Max token age (milliseconds), only buy tokens with creation time less than or equal to this value

  • maxTopHoldPercent: Top 10 max holdings ratio (0-1), only buy tokens with top 10 holdings less than this value (valid for Solana)

  • maxBuyTimesPerToken: The maximum number of token buys within this task over 7 days. Exceeding this limit will stop copy-buying

  • maxBuyAmountPerToken: The maximum token buy amount (SOL / ETH / BNB / TRX) within this task over 7 days. Exceeding this limit will stop copy-buying.

  • buyExist: Whether to continue to copy buy tokens already held

  • buyOncePerWallet: "true" means only buy once, "false" means unlimited buy times (only for tokens bought by DBot)

  • concurrentNodes: Number of concurrent nodes (1-3)

  • retries: Number of retries after failure (0-10)

  • enabled (sellSettings): Sell task enabled status

  • mode: Sell mode, "mixed" means both copy sell and take profit / stop loss are enabled, "only_copy" means only copy sell is enabled, "only_pnl" means only take profit / stop loss is enabled

  • sellAmountType: "all" means sell all, "follow_ratio" means follow the ratio to sell, "x_target_ratio" means multiply the sell ratio of Smart Money by a fixed multiplier

  • xTargetRatio: Multiples of smart money sell ratio (0-100). For example, if you enter 0.5 and smart money sells 10%, you sell 10% × 0.5 = 5%. If you enter 2, and smart money sells 10%, you sell 10% × 2 = 20%

  • sellSpeedType: Copy sell speed, invalid when mode is "only_pnl", can enter "fast" and "accurate", "fast" prioritizes speed but may result in the sell ratio being inconsistent with smart money. "accurate" prioritizes accuracy, but the sell speed may be slower

  • stopEarnPercent: Take profit percentage (0.5 means 50%), available when the type of fast buy / sell is "buy", and in the sell setting of the copy trading, sell the token when its price rises above this percentage

  • stopLossPercent: Stop loss percentage (0.5 means 50%), available when the type of fast buy / sell is "buy", and in the sell setting of the copy trading, sell the token when its price falls above this percentage

  • stopEarnGroup: Take profit group, available when the type of fast buy / sell is "buy", and in the sell setting of the copy trading, up to 6 supported, stopEarnGroup / stopLossGroup and stopEarnPercent / stopLossPercent only need to enter one

  • stopLossGroup: Stop loss group, available when the type of fast buy / sell is "buy", and in the sell setting of the copy trading, up to 6 supported, stopEarnGroup / stopLossGroup and stopEarnPercent / stopLossPercent only need to enter one

  • pricePercent: Price percentage (0.5 means 50%), when in the take profit group, it means how much up to sell, when in the stop loss group, it means how much down to sell

  • amountPercent: Sell Ratio (0-1, 0.5 means 50%), e.g. up 100% sell 50%, up 200% sell all, sell ratio needs to be set to 0.5 and 1, not 0.5 and 0.5

  • pnlOrderExpireDelta: The expiry time for take profit/stop loss tasks, max 864000000 (ms)

  • pnlOrderExpireExecute: "true" means that if the take profit / stop loss task is not triggered within the validity period, it will be automatically executed at the end of the task

  • sellMode: Sell method, valid for EVM, when sell revenue is less than consumed gas, "smart" means don't sell, "normal" means continue to sell.

  • migrateSellPercent: Raydium sell ratio (0.00-1.00), valid for Pump tokens, 0 means no auto-sell

  • minDevSellPercent: Trigger ratio (0-1), sell your tokens when Dev sells over this ratio

  • devSellPercent: The ratio of your token to be sold when the Dev sell task is triggered, 0 means don't create Dev sell task

Last updated