Skip to main content

7. Query order

Query order

此接口用於查詢指定訂單的詳細信息。通過調用此接口,您可以獲取訂單的完整信息,包括訂單狀態、交易對、訂單數量、價格、處理費等詳細信息。

GET
/openapi/order/query
請求
NameTypeRequiredDescription
query_codestring[1,128] yes查詢代碼

請求

{
"query_code": "************",
}
響應
NameTypeDescription
codeint業務狀態碼
dataobjectSub-order data
abbrstring幣名稱
accept_atint接受時間
addr_numint地址數量
addressstring地址
chainstring鏈名稱
childrenarray子項目
nostringMain order number
chainstring鏈名稱
typestringReceiving Assets Agreement
abbrstringReceive asset coin code
rationumber接收比例
group_rationumber接收組比例
amountnumberReceive asset value
addressstring地址
pricenumberReal-time exchange rate (USDT)
volumenumberVolume
volume_originnumberReceived asset quantity (the received asset quantity calculated when placing an order)
statusnumberStatus, 1-to be paid 2-paid 3-completed
create_atnumberCreate time
finish_atnumberFinish time
outputnullTransfer records
create_atint創建時間
refundarrayRefund records
abbrstringCoin Name
chainstringChain name
child_order_id stringSub-order id
from_addrJSONArrayShipping Address
order_nostringMain order number
statusintStatus, 1:Confirming 2:Confirmed 9:Rolled back
to_addrstringReceiving Address
txidstringTransaction Hash
typestringprotocol
update_atintConfirmation time
volumenumberTransfer amount
delete_atint刪除時間
exchange_modelstring兌換模式(浮動比例 | 固定比例)
expire_atint過期時間
finish_atint完成時間
freeze_atint凍結時間
fullsarrayTransactions to be confirmed
inputarrayTransfer-in records
nostring訂單編號
odr_volumefloat訂單數量
outputarray輸出列表
payfor_atint支付時間
pricefloat價格
query_codestring查詢代碼
rel_volumefloatActual quantity
statusintStatus, 1:to be transferred; 2:already transferred; 3:exchange; 4:completed; 5:Refunded; 7:frozen; 8:expired; 9:abandoned
typestringSource Asset Agreement
msgstring業務消息

示例響應

{
"code": 0,
"msg": "success",
"data": {
"no": "3XLpHMWt",
"query_code": "XSQQ0AIPHUO1",
"chain": "TRON",
"type": "TRC20",
"abbr": "USDT",
"address": "TUz5vZXTzbMoqQKBUpTJz8T32m2iwGme6V",
"exchange_model": "float",
"odr_volume": 1000,
"rel_volume": 0,
"addr_num": 0,
"price": 1,
"status": 1,
"create_at": 1744338146,
"expire_at": 1744424546,
"payfor_at": 0,
"accept_at": 0,
"finish_at": 0,
"freeze_at": 0,
"delete_at": 0,
"refund": [
{
"abbr": "string",
"chain": "string",
"child_order_id": 0,
"from_addr": "string",
"order_no": "string",
"status": 0,
"to_addr": "string",
"txid": "string",
"type": "string",
"update_at": 0,
"volume": 0
}
],
"children": [
{
"no": "3XLpHMWt",
"chain": "TRON",
"type": "",
"abbr": "TRX",
"ratio": 1,
"group_ratio": 1,
"amount": 1000,
"address": "TLxozzoG3Vxy9AqDyiv9fcJZtbTYhAy2rQ",
"price": 0.236048,
"volume": 0,
"volume_origin": 4206.808343,
"status": 1,
"create_at": 1744338146,
"finish_at": 0,
"output": null
}
],
"input": [],
"output": [],
"fulls": []
}
}