Get Open Orders
POST/private/OpenOrders
Retrieve information about currently open orders.
API Key Permissions Required: Orders and trades - Query open orders & trades
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
Restrict results to given client order id
Responses
- 200
Open orders info retrieved.
- application/json
- Schema
- Example (from schema)
Schema
- 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.
result object
Open Orders
open object
property name* OpenOrder
Open 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)
{
"error": [],
"result": {
"open": {
"OQCLML-BW3P3-BUCMWZ": {
"refid": "None",
"userref": 0,
"status": "open",
"opentm": 1688666559.8974,
"starttm": 0,
"expiretm": 0,
"descr": {
"pair": "XBTUSD",
"type": "buy",
"ordertype": "limit",
"price": "30010.0",
"price2": "0",
"leverage": "none",
"order": "buy 1.25000000 XBTUSD @ limit 30010.0",
"close": ""
},
"vol": "1.25000000",
"vol_exec": "0.37500000",
"cost": "11253.7",
"fee": "0.00000",
"price": "30010.0",
"stopprice": "0.00000",
"limitprice": "0.00000",
"misc": "",
"oflags": "fciq",
"trades": [
"TCCCTY-WE2O6-P3NB37"
]
},
"OB5VMB-B4U2U-DK2WRW": {
"refid": "None",
"userref": 45326,
"status": "open",
"opentm": 1688665899.5699,
"starttm": 0,
"expiretm": 0,
"descr": {
"pair": "XBTUSD",
"type": "buy",
"ordertype": "limit",
"price": "14500.0",
"price2": "0",
"leverage": "5:1",
"order": "buy 0.27500000 XBTUSD @ limit 14500.0 with 5:1 leverage",
"close": ""
},
"vol": "0.27500000",
"vol_exec": "0.00000000",
"cost": "0.00000",
"fee": "0.00000",
"price": "0.00000",
"stopprice": "0.00000",
"limitprice": "0.00000",
"misc": "",
"oflags": "fciq"
}
}
}
}