Query Orders Info
POST/private/QueryOrders
Retrieve information about specific orders.
API Key Permissions Required: Orders and trades - Query open orders & trades
or Orders and trades - Query closed orders & trades
, depending on status of order
Request
- application/json
Body
required
Nonce used in construction of API-Sign
header
Whether or not to include trades related to position in output
Restrict results to given user reference id
Comma delimited list of transaction IDs to query info about (50 maximum)
Default value: true
Whether or not to consolidate trades by individual taker trades
Responses
- 200
Orders info retrieved.
- application/json
- Schema
- Example (from schema)
Schema
- OpenOrder
- txid
- pending = order pending book entry
- open = open order
- closed = closed order
- canceled = order canceled
- expired = order expired
last
is the implied trigger if this field is not set.stopped
triggered by stop pricetouched
triggered by touch priceliquidated
liquidationpartial
partial fillamended
order parameters modified- •
post
post-only order (available when ordertype = limit) - •
fcib
prefer fee in base currency (default if selling) - •
fciq
prefer fee in quote currency (default if buying, mutually exclusive withfcib
) - •
nompp
disable market price protection for market orders - •
viqc
order volume expressed in quote currency. This option is supported only for buy market orders. Also not available on margin orders. - pending = order pending book entry
- open = open order
- closed = closed order
- canceled = order canceled
- expired = order expired
last
is the implied trigger if this field is not set.stopped
triggered by stop pricetouched
triggered by touch priceliquidated
liquidationpartial
partial fillamended
order parameters modifiedpost
post-only order (available when ordertype = limit)fcib
prefer fee in base currency (default if selling)fciq
prefer fee in quote currency (default if buying, mutually exclusive withfcib
)nompp
disable market price protection for market ordersviqc
order volumes expressed in quote currency.
result object
txid of the order.
Referral order transaction ID that created this order
Optional numeric, client identifier associated with one or more orders.
Optional alphanumeric, client identifier associated with the order.
Possible values: [pending
, open
, closed
, canceled
, expired
]
Status of order
Unix timestamp of when order was placed
Unix timestamp of order start time (or 0 if not set)
Unix timestamp of order end time (or 0 if not set)
descr object
Order description info
Asset pair
Possible values: [buy
, sell
]
Type of order (buy/sell)
Possible values: [market
, limit
, iceberg
, stop-loss
, take-profit
, stop-loss-limit
, take-profit-limit
, trailing-stop
, trailing-stop-limit
, settle-position
]
Order type
primary price
Secondary price
Amount of leverage
Order description
Conditional close order description (if conditional close set)
Volume of order (base currency)
Volume executed (base currency)
Total cost (quote currency unless)
Total fee (quote currency)
Average price (quote currency)
Stop price (quote currency)
Triggered limit price (quote currency, when limit based order type triggered)
Possible values: [last
, index
]
Default value: last
Price signal used to trigger "stop-loss" "take-profit" "stop-loss-limit" "take-profit-limit" orders.
Indicates if the order is funded on margin.
Comma delimited list of miscellaneous info
For institutional accounts, identifies underlying sub-account/trader for Self Trade Prevention (STP).
Comma delimited list of order flags
List of trade IDs related to order (if trades info requested and data available)
Referral order transaction ID that created this order
Optional numeric, client identifier associated with one or more orders.
Optional alphanumeric, client identifier associated with the order.
Possible values: [pending
, open
, closed
, canceled
, expired
]
Status of order
Unix timestamp of when order was placed
Unix timestamp of order start time (or 0 if not set)
Unix timestamp of order end time (or 0 if not set)
descr object
Order description info
Asset pair
Possible values: [buy
, sell
]
Type of order (buy/sell)
Possible values: [market
, limit
, iceberg
, stop-loss
, take-profit
, trailing-stop
, stop-loss-limit
, take-profit-limit
, trailing-stop-limit
, settle-position
]
Order type
primary price
Secondary price
Amount of leverage
Order description
Conditional close order description (if conditional close set)
Volume of order (base currency)
Volume executed (base currency)
Total cost (quote currency unless)
Total fee (quote currency)
Average price (quote currency)
Stop price (quote currency)
Triggered limit price (quote currency, when limit based order type triggered)
Possible values: [last
, index
]
Default value: last
Price signal used to trigger "stop-loss" "take-profit" "stop-loss-limit" "take-profit-limit" orders.
Indicates if the order is funded on margin.
Comma delimited list of miscellaneous info:
Comma delimited list of order flags:
List of trade IDs related to order (if trades info requested and data available)
For institutional accounts, identifies underlying sub-account/trader for Self Trade Prevention (STP).
Unix timestamp of when order was closed
Additional info on status (if any)
{
"error": [],
"result": {
"OBCMZD-JIEE7-77TH3F": {
"refid": "None",
"userref": 0,
"status": "closed",
"reason": null,
"opentm": 1688665496.7808,
"closetm": 1688665499.1922,
"starttm": 0,
"expiretm": 0,
"descr": {
"pair": "XBTUSD",
"type": "buy",
"ordertype": "stop-loss-limit",
"price": "27500.0",
"price2": "0",
"leverage": "none",
"order": "buy 1.25000000 XBTUSD @ limit 27500.0",
"close": ""
},
"vol": "1.25000000",
"vol_exec": "1.25000000",
"cost": "27526.2",
"fee": "26.2",
"price": "27500.0",
"stopprice": "0.00000",
"limitprice": "0.00000",
"misc": "",
"oflags": "fciq",
"trigger": "index",
"trades": [
"TZX2WP-XSEOP-FP7WYR"
]
},
"OMMDB2-FSB6Z-7W3HPO": {
"refid": "None",
"userref": 0,
"status": "closed",
"reason": null,
"opentm": 1688592012.2317,
"closetm": 1688592012.2335,
"starttm": 0,
"expiretm": 0,
"descr": {
"pair": "XBTUSD",
"type": "sell",
"ordertype": "market",
"price": "0",
"price2": "0",
"leverage": "none",
"order": "sell 0.25000000 XBTUSD @ market",
"close": ""
},
"vol": "0.25000000",
"vol_exec": "0.25000000",
"cost": "7500.0",
"fee": "7.5",
"price": "30000.0",
"stopprice": "0.00000",
"limitprice": "0.00000",
"misc": "",
"oflags": "fcib",
"trades": [
"TJUW2K-FLX2N-AR2FLU"
]
}
}
}