get https://api-bot-v1.dbotx.com/automation/swap_orders
此API用于查询快速买卖的订单信息,ids的参数来自于快速买卖的响应结果
Free | Plus | Pro | Enterprise | 积分消耗 |
---|---|---|---|---|
✅ | ✅ | ✅ | ✅ | 0 |
响应数据
{
"err": false, // 是否发生错误
"res": [
{
"id": "lwzrpe4g01uc90", // 订单id
"state": "done", // 订单状态,init:初始化,processing:进行中,done:已完成,fail:已失败,expired:已过期
"chain": "solana", // 链 (solana/ethereum/base/bsc/tron)
"tradeType": "sell", // 交易类型,值为buy和sell
"txPriceUsd": 0.0121567895, // 买入/卖出价格
"swapHash": "transaction hash", // 交易哈希
"errorCode": "",
"errorMessage": ""
},
{
"id": "lwyrpa4605uc56",
"state": "fail",
"chain": "solana",
"tradeType": "buy",
"errorCode": "E_OTHERS", // 错误类型
"errorMessage": "AccountNotFound\n" // 错误信息
}
]
}