查询交易订单详情
请求
GET https://custody-example-url/custody/v1/api/projects/{b_id}/integrated/trade/order
参数
字段 |
类型 |
描述 |
b_id |
String |
业务线ID |
order_no |
String |
订单号 |
biz_serial_number |
String |
业务流水号(与订单号传其一即可,同时传则以订单号为准) |
响应
字段 |
类型 |
描述 |
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": {
"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
},
"message": "string",
"successful": true
}