Query Trade


Request

KeyTypeValueRequired
typestringquerytradeYes
securitystringThe trading pair to queryOptional
refnostringThe reference trade id to queryOptional
fromtimestring, POSIXThe starting time period in which to searchOptional
lastfirstbooleanTrue if the most recent orders should be returned first, false if not.
maxreturnnumberThe maximum number of entries to returnOptional

Response

KeyTypeValue
typestringquerytrade
resultstring"OK" for successful queries. For unsuccessful queries, this field will be populated with the reason for the query rejection
total_recstringThe total number of items in the query. NOTE if from time is used the total_rec is not reflected in the total rec count.
fromtimestring, POSIX
maxreturnnumber
securitystring
data.execamountnumberThe amount of the order that has executed (FIAT)
data.accountstring
data.categorystring"CROX"
data.exchangerefstring
data.execpricenumber
data.execqtynumber
data.firmstring
data.ismakerboolean
data.rec_nonumberRecord number
data.refnostringThe order reference id
data.securitystring
data.sidestringThe side of the Order
data.traderefnostring
data.trdtime
data.typestring"sale"
data.useridstring
qtynumberThe order's original quantity
trdtimestring, POSIXTime of the last order update in POSIX time
liveqtynumberRemaining open quantity on the order
# Request
{
  "type":"querytrade",
  "security":"LTCUSD",
  "fromtime":"1652103422000"
}