Skip to main content

7. Query order

Query order

This interface is used to query the detailed information of a specified order. By calling this interface, you can obtain complete information of the order, including order status, transaction pair, order quantity, price, handling fee and other details.

GET
/openapi/order/query
Request
NameTypeRequiredDescription
query_codestring[1,128] yesQuery code

Request

{
"query_code": "************",
}
Response
NameTypeDescription
codeintBusiness status code
dataobjectSub-order data
abbrstringCoin name
accept_atintAcceptance time
addr_numintNumber of addresses
addressstringWallet Address
chainstringChain name
childrenarraySub-order data
nostringMain order number
chainstringChain name
typestringReceiving Assets Agreement
abbrstringReceive asset coin code
rationumberReceiving ratio ( value>0 or value<= 1 )
group_rationumberReceiving group ratio( value>0 or value<= 1 )
amountnumberReceive asset value
addressstringWallet Address
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_atintCreation time
refundarrayRefund records
abbrstringCoin Name
chainstringChain name
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_atintDelete time
exchange_modelstringExchange mode [ float | fixed ]
expire_atintExpiration time
finish_atintCompletion time
freeze_atintFreeze time
fullsarrayTransactions to be confirmed
inputArrayInput list
chainstringChain name
abbrstringCoin name
txidstringTransaction Hash
to_addrstringReceiving Address
volumenumberTransfer amount
update_atnumberConfirmation time
nostringOrder number
odr_volumefloatOrder quantity
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
payfor_atintPayment Time
pricefloatPrice
query_codestringQuery code
rel_volumefloatActual quantity
statusintStatus, 1:Waiting to send; 2:Sent; 3:Waiting to receive; 4:Completed; 5:Refunded; 7:Frozen; 8:Expired; 9:Abandoned
typestringSource Asset Agreement
msgstringBusiness message

Example Response

{
"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",
"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": [
{
"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
}
],
"fulls": []
}
}