Open Orders
GET /v1/api/openOrders
This endpoint returns the list of the client's open orders.
Headers
Header Field | Type | Comments |
---|---|---|
credentials_secret | JWT | Created by user for validation |
Open Orders Response Message
Name | Type | Comments |
---|---|---|
utc_timestamp | integer | Time at which the message was generated by the API |
open_orders | OpenOrder[] | see below |
OpenOrder
Message
Name | Type | Comments |
---|---|---|
market_id | string | "0" for firm order / "none" for RFQ |
tradeable_entity_id | integer | unique instrument id |
symbol | string | Instrument name e.g BTC-USD |
side | string | buy / sell |
type | string | LIMIT / MARKET |
quantity | float | "0.1" / "0.000123" / "0.0" / "1.3456" |
price | float | "12.0" / "1.1245" / "0.000100" |
order_id | string | Unique Order Id generated by the exchange |
client_order_id | string | Unique Order Id generated by the client |
order_state | string | order state |
cancel_state | string | cancellation state |
executions | Execution[] | see below |
Execution
Message
Name | Type | Comments |
---|---|---|
utc_timestamp | integer | Execution Time |
executed_quantity | float | "0.1" / "0.000123" / "0.0" / "1.3456" |
executed_price | float | "12.0" / "1.1245" / "0.000100" |
trade_id | string | Unique Trade Id generated by the exchange |
liquidity_flag | string | added / taken |
If the order is not executed, the executions
array will be empty.
Example
{
"query_open_orders_response": {
"utc_timestamp": "1670246199406663",
"open_orders": [
{
"market_id": "0",
"tradeable_entity_id": "6",
"symbol": "PTF-USD",
"type": "LIMIT",
"order_id": "exchange_generated_id",
"client_order_id": "client_generated_id",
"quantity": "1000",
"price": "0.01",
"side": "buy",
"order_state": "accepted",
"cancel_state": "none",
"executions": []
},
{
"market_id": "0",
"tradeable_entity_id": "5",
"symbol": "ETH-USD",
"type": "LIMIT",
"order_id": "exchange_generated_id",
"client_order_id": "client_generated_id",
"quantity": "10",
"price": "1500",
"side": "buy",
"order_state": "partial_fill",
"cancel_state": "none",
"executions": [
{
"utc_timestamp": "1670246760236858000",
"executed_price": "1425.0",
"executed_quantity": "0.1",
"trade_id": "2187595",
"liquidity_flag": "added"
}
]
}
]
}
}