获取业务线下满足过滤条件的订单
请求
GET https://custody-example-url/custody/v1/api/projects/{b_id}/orders
参数
字段 | 类型 | 描述 |
---|---|---|
b_id | String | 业务线id |
start_time可选 |
Integer | 过滤订单起始时间戳 |
end_time可选 |
Integer | 过滤订单结束时间戳 |
keyword可选 |
String | 关键字(可根据订单编号、提币申请账号、钱包名称、钱包编号、订单描述、转出地址及收款地址模糊匹配) |
limit可选 |
Integer | limit 默认为10 |
offset可选 |
Integer | offset 默认为0 |
sort_by_time可选 |
String | 按时间排序(DESC、ASC 默认DESC 按创建时间倒叙排序) |
applicant可选 |
String[] | 制单人 |
coin_name可选 |
String[] | 币种名称 允许值: 参考币种列表 中 Symbol (For API) 列 |
chain_name可选 |
String[] | 链名称 允许值: 参考币种列表 中 Cactus Network Name (For API) 列 |
status可选 |
String[] | 订单状态 |
wallet_name可选 |
String[] | 钱包名称(钱包名称(格式:钱包名称/钱包编号)) |
响应
字段 | 类型 | 描述 |
---|---|---|
code | Integer | 响应状态码 |
message | String | 响应信息 |
successful | Boolean | 请求是否成功 |
data | Object[] | 订单数据 |
offset | Integer | 记录查询索引 |
list | Object[] | 订单列表 |
domain_id | String | 企业ID |
bid | String | 业务线ID |
exchange_rate | Decimal | 订单制单时币种汇率(美元) |
time_stamp | Long | 订单创建时间戳 |
order_no | String | 订单号 |
applicant | String | 订单制单人 |
business_name | String | 业务线名称 |
coin_name | String | 币种名称 |
storage_type | String | 存储类型(PRIME_HOT、PRIME_COLD、ENTERPRISE_HOT、ENTERPRISE_COLD) |
wallet_name | String | 钱包名称 |
wallet_code | String | 钱包编号 |
amount | Decimal | 提币金额 |
original_amount | Decimal | 原始提币金额 |
miner_fee_rate | Decimal | 矿工费率 |
description | String | 订单描述 |
from_address | String | 提币地址 |
gas_price | Decimal | 汽油费价格(ETH系列) |
gas_limit | Decimal | 汽油费限制 (ETH系列) |
max_fee_per_gas | Decimal | max fee |
max_priority_fee_per_gas | Decimal | priority fee |
status | String | 订单状态(PROCESSING、PARTIALLY_FAILED、MANUAL_APPROVAL、FAILED、ORDER_SEND_OUT、FINISHED、CANCELED) |
inner_status | String | 内部订单状态 |
order_dest_address_info_vo_list | Object[] | 订单列表订单项 |
-dest_address | String | 提币目的地址 |
-memo_type | String | memo 类型 (MEMO_NONE,MEMO_TEXT,MEMO_HASH) |
-memo | String | memo |
-origin_balance | Decimal | 原始提币额 |
-balance | Decimal | 实际提币额 |
-remark | String | 备注信息 |
响应示例
{
"code": 0,
"message": "",
"data": {
"offset": 0,
"limit": 10,
"list": [
{
"domain_id": "a5b3f782c4e24c688eca60946442a75f",
"exchange_rate": 9768.36,
"time_stamp": 1582008785000,
"order_no": "666666000000073",
"applicant": "[email protected]",
"business_name": "BusinessLine001",
"coin_name": "BTC",
"storage_type": "PRIME_HOT",
"wallet_name": "MIX008",
"wallet_code": "CHBTC4813422686",
"amount": 10000,
"original_amount": 10000,
"miner_fee_rate": 1024,
"description": "",
"from_address": "",
"gas_price": null,
"gas_limit": null,
"order_dest_address_info_vo_list": [
{
"dest_address": "mioNv7xz1es2waP77gLQYypXesBbkT8BeX",
"memo_type": "MEMO_TEXT",
"memo": "text",
"origin_balance": 10000,
"balance": 10000,
"remark": ""
}
],
"status": "FINISHED",
"inner_status": "FINISHED",
"bid": "ed70ff75b1fe4994a3bd836befe0e87f"
}
],
"total": 1
},
"successful": true
}