Skip to main content

order_list

Order list

This API is used to query a list of orders. By calling this API, you can obtain a list of orders, including order status, quantity, price, and other detailed information.

GET
/openapi/order/list
請求
NameTypeRequiredDescription
pagenumber noDefault: 1.
page_sizenumber noDefault: 10 ; Max: 100
created_startnumber noStart time (unix timestamp, inclusive)
created_endnumber noEnd time (unix timestamp, exclusive)
directionstring noDirection: DESC|ASC Default: DESC
statusnumber nostatus

請求

{
"page": 1,
"page_size": 10
}
響應
NameTypeDescription
codeint業務狀態碼
totalinttotal
dataArrayorder data
chainstring鏈名稱
abbrstring幣名稱
addressstring地址
exchange_modelstring兌換模式(浮動比例 | 固定比例)
nostring訂單編號
payfor_atint支付時間
pricefloat價格
query_codestring查詢代碼
odr_volumefloat訂單數量
rel_volumefloatActual quantity
statusintStatus, 1:Waiting to send; 2:Sent; 3:Waiting to receive; 4:Completed; 5:Refunded; 7:Frozen; 8:Expired; 9:Abandoned
create_atint創建時間
delete_atint刪除時間
expire_atint過期時間
finish_atint完成時間
freeze_atint凍結時間
accept_atint接受時間
childrenArrayReceives
chainstringReceive asset chain name
abbrstringReceive asset tokens
ratiofloat64Asset Receipt Ratio
amountfloat64Received asset value in USDT
pricefloat64Real-time exchange rate (USDT)
volumenumberReceive quantity
addressstringWallet Address
inputArrayInput list
chainstringChain name
abbrstringCoin name
txidstringTransaction Hash
to_addrstringReceiving Address
volumenumberTransfer amount
update_atnumberConfirmation time
outputArrayOutput list
chainstringChain name
abbrstringCoin name
txidstringTransaction Hash
to_addrstringReceiving Address
volumenumberTransfer amount
order_nostringMain order number
statusnumberStatus, 1:Confirming 2:Confirmed
update_atnumberConfirmation time
msgstring業務消息

示例響應

{
"code": 0,
"msg": "success",
"total": 1,
"data":[
{
"no": "1aS***UQ",
"query_code": "FL4E****TGEE",
"chain": "TRON",
"abbr": "TRX",
"address": "TWr1wuWH******XGgMmtVJNSi1p5",
"exchange_model": "float",
"odr_volume": 17660.605547,
"rel_volume": 6.15,
"addr_num": 1,
"price": 0.283116,
"status": 4,
"create_at": 1776859589,
"expire_at": 1777945989,
"payfor_at": 1767860156,
"accept_at": 0,
"finish_at": 1767861622,
"freeze_at": 0,
"delete_at": 0,
"children":[
{
"chain":"TRON",
"abbr":"TRX",
"ratio":1,
"amount":6.15,
"price":0.283116,
"address": "TWe9oL3HY******JzwiZciyHUHhSUYvV"
}],
"input": [
{
"chain": "TRON",
"abbr": "TRX",
"txid": "48409d63001c97******63e57d6ec327845",
"to_addr": "TPKJvL4Je******XL5TiVzK6ujkWj",
"volume": 66,
"update_at": 1775101696
}
],
"output": [
{
"chain": "TRON",
"abbr": "TRX",
"txid": "a04ce1a4c4678******66673363fe04202fc",
"to_addr": "TWe9oL3HYa6******iyHUHhSUYvV",
"volume": 63.57359485,
"order_no": "******",
"status": 2,
"update_at": 1775101709
}
]
}]
}