查询交易订单列表
请求
GET https://custody-example-url/custody/v1/api/projects/{b_id}/integrated/trade/orders
参数
字段 |
类型 |
描述 |
b_id |
String |
业务线ID |
keyword可选 |
String |
关键词(订单号、理财员) |
base_coin可选 |
String |
base 币种 |
quote_coin可选 |
String |
quote 币种 |
side可选 |
String |
交易方向(BUY-买,SELL-卖) |
statuses可选 |
String[] |
订单状态 |
trade_type可选 |
String |
订单类型 (LIMIT-限价单,TOKEN-询价单) |
create_time_start可选 |
Long |
订单创建时间开始时间 |
create_time_end可选 |
Long |
订单创建时间截止时间 |
offset |
Integer |
记录查询索引 |
limit |
Integer |
每页查询数量 |
响应
字段 |
类型 |
描述 |
bid |
String |
业务线ID |
order_no |
String |
订单号 |
base_coin |
String |
base 币种 |
quote_coin |
String |
quote 币种 |
base_amount |
Integer |
下单 base 数量 |
quote_amount |
Integer |
下单 quote 数量 |
price |
Integer |
下单价格 |
filled_price |
Integer |
成交均价 |
filled_qty |
Integer |
成交 base 数量 |
filled_amount |
Integer |
成交 quote 数量 |
status |
String |
状态(PROCESSING-处理中,PENDING-待结算,COMPLETE-完成,CANCELING-已撤单,CANCEL_PART-部分成功) |
trade_type |
String |
订单类型(LIMIT-限价单,TOKEN-询价单) |
side |
String |
交易方向(BUY-买,SELL-卖) |
reason |
String |
失败原因 |
create_time |
Long |
创建时间 |
complete_time |
Long |
完成时间 |
响应示例
{
"code": 0,
"data": {
"limit": 0,
"list": [
{
"bid": "string",
"order_no": "string",
"base_coin": "string",
"quote_coin": "string",
"base_amount": 0,
"quote_amount": 0,
"price": 0,
"filled_price": 0,
"filled_qty": 0,
"filled_amount": 0,
"status": "string",
"trade_type": "string",
"side": "string",
"reason": "string",
"complete_time": 1663686589524,
"create_time": 1663657787000
}
],
"metadata": {},
"offset": 0,
"total": 0
},
"message": "string",
"successful": true
}