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
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_atintDelete time
exchange_modelstringExchange mode [ float | fixed ]
expire_atintExpiration time
finish_atintCompletion time
freeze_atintFreeze time
fullsarrayTransactions to be confirmed
inputarrayTransfer-in records
nostringOrder number
odr_volumefloatOrder Quantity
outputarrayOutput List
payfor_atintPayment Time
pricefloatPrice
query_codestringQuery code
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
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",
"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": []
}
}