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

Query Order


Request

Key

Type

Value

Required

type

string

queryorder

Yes

security

string

The trading pair to query

Yes

refno

string

The reference order id to query

Yes

Response

Key

Type

Value

type

string

queryorder

result

string

"OK" for successful queries. For unsuccessful queries, this field will be populated with the reason for the query rejection

security

string

The trading pair of the order

updtime

string, POSIX

Time of the last order update in POSIX time

tif

string

Order's Time In Force

execamount

number

The amount of the order that has executed (FIAT)

qty

number

The order's original quantity

liveqty

number

Remaining open quantity on the order

refno

string

The order reference id

execqty

number

The executed order quantity

side

string

The side of the Order

refno

string

The 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"
}