Query Trade
Request
| Key | Type | Value | Required |
|---|---|---|---|
| type | string | querytrade | Yes |
| security | string | The trading pair to query | Optional |
| refno | string | The reference trade id to query | Optional |
| fromtime | string, POSIX | The starting time period in which to search | Optional |
| lastfirst | boolean | True if the most recent orders should be returned first, false if not. | |
| maxreturn | number | The maximum number of entries to return | Optional |
Response
| Key | Type | Value |
|---|---|---|
| type | string | querytrade |
| result | string | "OK" for successful queries. For unsuccessful queries, this field will be populated with the reason for the query rejection |
| total_rec | string | The total number of items in the query. NOTE if from time is used the total_rec is not reflected in the total rec count. |
| fromtime | string, POSIX | |
| maxreturn | number | |
| security | string | |
| data.execamount | number | The amount of the order that has executed (FIAT) |
| data.account | string | |
| data.category | string | "CROX" |
| data.exchangeref | string | |
| data.execprice | number | |
| data.execqty | number | |
| data.firm | string | |
| data.ismaker | boolean | |
| data.rec_no | number | Record number |
| data.refno | string | The order reference id |
| data.security | string | |
| data.side | string | The side of the Order |
| data.traderefno | string | |
| data.trdtime | ||
| data.type | string | "sale" |
| data.userid | string | |
| qty | number | The order's original quantity |
| trdtime | string, POSIX | Time of the last order update in POSIX time |
| liveqty | number | Remaining open quantity on the order |
# Request
{
"type":"querytrade",
"security":"LTCUSD",
"fromtime":"1652103422000"
}