Limit Orders (GET)

Limit Orders

This API is used to get the user's all limit orders

URL

https://api-bot-v1.dbotx.com/automation/limit_orders?page={page}&size={size}&chain={chain}&state={state}&groupId={group_id}&token={token}

Header: X-API-KEY

Parameters

{page} 0 / 1 / 2 ...
{size} 10 / 20 (max 20)
{chain} solana / ethereum / base / bsc / tron
{state} init / done / expired
{groupId} group_id
{token}

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)

Results

{
	"err": false,
	"res": [
		{
			"accountId": "vd1l2ge6ac1dxh",
			"id": "n1v50h7hfkt0e1",
			"enabled": true,
			"groupId": "m53gevri055ird",
			"state": "init",
			"chain": "solana",
			"tradeType": "sell",
			"triggerDirection": "up",
			"triggerPriceUsd": 0.12,
			"currencyAmountUI": 1,
			"pair": "pair address",
			"pairType": "raydium_amm",
			"walletId": "lus8auwp003zvg",
			"walletType": "solana",
			"walletAddress": "your wallet address",
			"walletName": "your wallet name",
			"priorityFee": null,
			"gasFeeDelta": 5,
			"maxFeePerGas": 100,
			"jitoEnabled": true,
			"jitoTip": 0.001,
			"maxSlippage": 0.1,
			"expireAt": 1731324301348,
			"expireDelta": 36000000,
			"expireExecute": false,
			"concurrentNodes": 2,
			"retries": 1,
			"errorCode": "",
			"errorMessage": "",
			"currencyInfo": {
				"contract": "So11111111111111111111111111111111111111112",
				"name": "Wrapped SOL",
				"symbol": "SOL",
				"decimals": 9,
				"totalSupply": null,
				"icon": "icon url",
				"createAt": null
			},
			"tokenInfo": {
				"contract": "CzLSujWBLFsSjncfkh59rUFqvafWcY5tzedWJSuypump",
				"createAt": 1728554501806,
				"name": "token name",
				"symbol": "token symbol",
				"decimals": 6,
				"totalSupply": "1000000000000000",
				"icon": "icon url",
				"freezeAuthority": null,
				"mintAuthority": null
			},
			"links": {
				"etherscan": "scan link",
				"dexscreener": "dexscreener link",
				"uniswap": "swap link"
			}
		}
	],
	"docs": "https://dbotx.com/docs"
}

Response Parameters

  • accountId: User id

  • id: Limit order task id

  • enabled: Task enable status, true/false

  • groupId: Group id

  • state: Order state (init/processing/done/fail/expired)

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

  • tradeType: Trade type, with values of buy and sell

  • triggerDirection: "down" means buy/sell below the trigger price, "up" means buy/sell above the trigger price

  • triggerPriceUsd: Price (USD) that triggers buy / sell

  • currencyAmountUI: When trade type is buy, fill in the buy amount (ETH/SOL/BNB/TRX), when tradeType is sell, fill in the sell ratio (0-1)

  • pair: Trading pair address

  • pairType: From which DEX

  • walletId: The id of the wallet to be used

  • walletType: Wallet type (solana/evm)

  • walletAddress: Wallet address

  • walletName: Wallet name

  • 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

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

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

  • maxSlippage: MAX slippage tolerance (0.00-1.00)

  • expireAt: Task expiration time (millisecond timestamp)

  • expireDelta: Task duration, max 864000000 (milliseconds)

  • expireExecute: “true” means that when a task expires and is not triggered, the token will be bought or sold at the real-time price at that time

  • concurrent: NodesNumber of concurrent nodes (1-3)

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

  • errorCode: Error type

  • errorMessage: Error message

  • currencyInfo: Native token information

  • tokenInfo: Token information

  • link: Related links for this transaction

Last updated