移动止盈止损任务列表(GET)
Last updated
Last updated
此API用于获取用户的所有移动止盈止损任务
(请不要向任何人透露APIKey,如有遗失风险,请刷新)
{source} normal / swap_order / follow_order (only swap_order now) 必需
{sourceId} fast buy / sell record id
{page} 0 / 1 / 2 ...
{size} 10 / 20 (max 20)
{chain} solana / ethereum / base / bsc / tron
{state} init / done / expired
{token} token address
X-API-KEY可以在您的"控制台"中获取, 前往查看: 控制台
在分页类型的接口中, 通过返回值中的next字段, 作为下一页的查询参数(如果next == null, 意味着分页已经结束)
{
"err": false,
"res": [
{
"accountId": "vd1l2ge6ac1dxh",
"id": "n1v50h7hfkt0e1",
"enabled": true,
"state": "init",
"chain": "solana",
"tradeType": "sell",
"basePriceUsd": 0.1,
"triggerPriceUsd": 0.16,
"highestPriceUsd": 0.2,
"trailingDistancePercent": 0.2,
"amountOrPercent": 1,
"txPriceUsd": 0.125,
"pair": "pair address",
"pairType": "raydium_amm",
"walletId": "lus8auwp003zvg",
"walletType": "solana",
"walletAddress": "your wallet address",
"walletName": "your wallet name",
"source": "swap_order",
"sourceGroupIdx": null,
"sourceId": "m21gjuks052ojs",
"sourceTradeId": "m21gjuks052ojs_m3je3fglq21so1",
"customFeeAndTip": false,
"priorityFee": null,
"gasFeeDelta": 5,
"maxFeePerGas": 100,
"jitoEnabled": true,
"jitoTip": 0.001,
"maxSlippage": 0.1,
"expireAt": 1731324301348,
"expireDelta": 36000000,
"expireExecute": false,
"useMidPrice": 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"
}
accountId:用户id
id:任务id
enabled:任务启用状态,true/false
state:订单状态,init:初始化,processing:进行中,done:已完成,fail:已失败,expired:已过期
chain:链 (solana/ethereum/base/bsc/tron)
tradeType:交易类型,值为buy和sell
basePriceUsd:代币的买入价格
triggerPriceUsd:触发买入/卖出的价格(美元)
highestPriceUsd:代币买入后达到的最高价格
trailingDistancePercent:代币价格的回撤比例(不能大于等于1)
amountOrPercent:代币的卖出比例
txPriceUsd:实际买入/卖出的价格(美元)
pair:交易对合约地址
pairType:来源于哪个DEX
walletId:需要使用的钱包的id
walletType:钱包类型 (solana/evm)
walletAddress:钱包地址
walletName:钱包名称
source:移动止盈止损任务来源,当前仅支持"swap_order"
sourceGroupIdx:分段止盈止损任务编号 (从0开始)
sourceId:若任务由跟单创建,此参数为跟单任务id,若任务由快速买卖创建,此参数为快速买卖记录id
sourceTradeId:若任务由跟单创建,此参数为跟单记录id,若任务由快速买卖创建,此参数为快速买卖记录id
priorityFee:优先费 (SOL),对Solana有效,空字符串表示使用自动优先费
gasFeeDelta:额外增加的gas (Gwei),对EVM链有效
maxFeePerGas:基础gas超过此值时将不进行交易 (Gwei),对EVM链有效
customFeeAndTip: "true"表示优先费 (priorityFee) 和贿赂费 (jitoTip) 两个字段均有效,系统将按填写的值执行交易 (null表示自动优先费/自动贿赂费),"false"表示高速模式下只有优先费 (priorityFee) 有效,防夹模式下只有贿赂费 (jitoTip) 有效,系统将自动进行分配
jitoEnabled:"true"表示启用防夹模式(Solana & Ethereum)
jitoTip:防夹模式使用的贿赂费 (Solana)
maxSlippage:最大滑点(0.00-1.00)买入时表示实际成交价格和期望价格之间的差距,卖出时表示期望价格和实际成交价格之间的差距,相差倍数=1/(1-滑点),0.5即最多接受2倍价差,1 即不限制价差
expireAt:任务过期时间 (毫秒时间戳)
expireDelta:任务有效时长,最大值为864000000 (毫秒)
expireExecute:"true"表示任务过期仍未触发时,会按过期时的实时价格买入或卖出代币
useMidPrice: "true"表示启用防插针模式,将使用1秒内的中间价格作为触发价,会尽可能但无法100%保证避免插针
concurrentNodes:并发节点数(1-3)
retries:失败后的重试次数(0-10)
errorCode:错误类型
errorMessage:错误信息
currencyInfo:主币信息
tokenInfo:代币信息
link:本次交易的相关链接