Use Query Order to retrieve order information on orders placed on the exchange.

Query Order


Request

KeyTypeValueRequired
typestringqueryorderYes
securitystringThe trading pair to queryYes
refnostringThe reference order id to queryYes

Response

KeyTypeValue
typestringqueryorder
resultstring"OK" for successful queries. For unsuccessful queries, this field will be populated with the reason for the query rejection
securitystringThe trading pair of the order
updtimestring, POSIXTime of the last order update in POSIX time
tifstringOrder's Time In Force
execamountnumberThe amount of the order that has executed (FIAT)
qtynumberThe order's original quantity
liveqtynumberRemaining open quantity on the order
refnostringThe order reference id
execqtynumberThe executed order quantity
sidestringThe side of the Order
refnostringThe reference order id
# Request
{
  "type":"queryorder",
  "security":"BTCUSD",
  "refno":"3XXF0329A0B0"
}

# Response - Success
{
  "result":"OK",
  "refno":"3XXF0329A0B0",
  "data": {
    "updtime":"1559505235085",
    "tif":"GTC",
    "execamount":"10000",
    "qty":"1000",
    "security":"BTCUSD",
    "type":"order",
    "clientorderid":"CLIENTID1",
    "liveqty":"900",
    "category":"CROX",
    "refno":"3XXF0329A0B0",
    "price":"100",
    "execqty":"100",
    "side":"S"
  }
  "security":"BTCUSD",
  "type":"queryorder"
}

# Response - Failure
{
  "result":"order not found",
  "refno":"3XXF0329A0B0",
  "security":"BTCUSD",
  "type":"queryorder"
}