Skip to main content

Order Details

GET /v1/api/order

This endpoint allows a user to request details for a specific order.

The order may be specified by the client_order_id (client generated) or order_id (exchange generated).

Headers

Header FieldTypeComments
credentials_secretJWTCreated by user for validation

Order Details Response Message

NameTypeComments
market_idstring"0" for firm order / "none" for RFQ
tradeable_entity_idintegerunique instrument id
symbolstringInstrument name e.g BTC-USD
sidestringbuy / sell
typestringLIMIT / MARKET
quantityfloat"0.1" / "0.000123" / "0.0" / "1.3456"
pricefloat"12.0" / "1.1245" / "0.000100"
order_idstringUnique Order Id generated by the exchange
client_order_idstringUnique Order Id generated by the client
order_statestringorder state
cancel_statestringcancellation state
executionsExecution[]see below

Execution Message

NameTypeComments
utc_timestampintegerExecution Time
executed_quantityfloat"0.1" / "0.000123" / "0.0" / "1.3456"
executed_pricefloat"12.0" / "1.1245" / "0.000100"
trade_idstringUnique Trade Id generated by the exchange
liquidity_flagstringadded / taken

Responses

If the order is not executed, the executions array will be empty.

{
"query_order_response": {
"utc_timestamp": "1637596685110771",
"market_id": "0",
"tradeable_entity_id": "7",
"symbol": "BTC-USD",
"type": "LIMIT",
"order_id": "exchange_generated_id",
"client_order_id": "client_generated_id",
"quantity": "0.002",
"price": "64760.00",
"side": "buy",
"order_state": "filled",
"cancel_state": "none",
"executions": [
{
"utc_timestamp": "1637596673102302000",
"executed_price": "58258.00",
"executed_quantity": "0.00200000",
"trade_id": "2164967",
"liquidity_flag": "taken"
}
]
}
}

Failure

{
"query_order_response": {
"error": "failed",
"reason": "exchange order id or client order id not found in order cache"
}
}