Get Trade Order Details
Request
GET https://custody-example-url/custody/v1/api/projects/{b_id}/integrated/trade/order
Parameters
Field |
Type |
Description |
b_id |
String |
Business line ID |
order_no |
String |
Order ID |
biz_serial_number |
String |
Business flow ID(Get it from flow list, and the order id shall prevail at the same time.) |
Response
Field |
Type |
Description |
bid |
String |
Business line ID |
order_no |
String |
Order ID |
base_coin |
String |
Base currency |
quote_coin |
String |
Quote currency |
base_amount |
Integer |
Base amount |
quote_amount |
Integer |
Quote amount |
price |
Integer |
Price |
filled_price |
Integer |
Transaction price |
filled_qty |
Integer |
Transaction base amount |
filled_amount |
Integer |
Transaction quote amount |
status |
String |
Status (PROCESSING-processing; PENDING-pending settlement;COMPLETE-complete; CANCELING-cancel;CANCEL_PART-partial success) |
trade_type |
String |
Order Type (LIMIT-limit order; TOKEN-market order) |
side |
String |
Trade directions (BUY-buy; SELL-sell) |
reason |
String |
Reason for failure |
create_time |
Long |
Create time |
complete_time |
Long |
Complete time |
Response Example
{
"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
}