Fetches one order scoped to the authenticated broker and the specified account_id. client_order_id is unique only among active orders of the broker and may be reused after an order reaches a terminal status. If several orders match, returns the active order (NEW/ACTIVE/PARTIALLY_FILLED) if one exists; otherwise returns the most recently updated order (max last_update_wall_time_ns, ties broken by order_id). Returns 404 when no order matches, including when the order belongs to another account of the broker or when an unfilled CANCELLED order has already been removed by read-store retention (about 14 days after completion). FILLED, partially filled CANCELLED, EXPIRED and REJECTED orders are retained and remain retrievable.
Headers
-
Broker access key identifier.
Format should match the following pattern:
^[A-Za-z0-9._~-]{1,64}$. -
Keyed BLAKE2b-256 signature (hex lowercase, 64 characters).
Format should match the following pattern:
^[0-9a-f]{64}$. -
RFC3339 timestamp with milliseconds (e.g., 2025-10-30T06:00:34.075Z). Must be within clock_skew_tolerance (default 5m) of server time.
Path parameters
-
Broker-supplied account identifier; length 1..128; charset [A-Za-z0-9._~-].
Maximum length is
128. Format should match the following pattern:^[A-Za-z0-9._~-]{1,128}$. -
Broker-supplied order identifier; length 1..64; charset [A-Za-z0-9._~-].
Minimum length is
1, maximum length is64. Format should match the following pattern:^[A-Za-z0-9._~-]{1,64}$.
Responses
-
Order view
-
Forbidden by broker status, CIDR, permissions or market state. broker_suspended denies mutations other than DELETE cancellation and POST merge; broker_disabled denies all authenticated requests; ip_not_allowed is checked first. All authz 403 responses use Error {error_code, message} with Content-Type: application/json, including WebSocket upgrade refusal. The administrative/prepayment restriction cause is not exposed.
-
Resource not found
-
The request could not be served.
error_codein the response body gives the reason and determines whether the request may be retried.
curl \
--request GET 'https://api.example.com/v1/trading/accounts/{account_id}/orders/by-client-order-id/{client_order_id}' \
--header "PRE-ACCESS-KEY: string" \
--header "PRE-ACCESS-SIGNATURE: string" \
--header "PRE-ACCESS-TIMESTAMP: 2026-05-04T09:42:00Z"
{
"order_id": "string",
"client_order_id": "string",
"market_id": "string",
"broker_id": "string",
"account_id": "string",
"side": "BUY",
"type": "LIMIT",
"tif": "GTC",
"token": "YES",
"price": {
"units": 42,
"nanos": 42
},
"qty": {
"units": 42,
"nanos": 42
},
"volume": {
"units": 42,
"nanos": 42
},
"filled_qty": {
"units": 42,
"nanos": 42
},
"filled_volume": {
"units": 42,
"nanos": 42
},
"filled_fee": {
"units": 42,
"nanos": 42
},
"status": "NEW",
"status_reason": "USER_REQUEST",
"last_update_wall_time_ns": 42,
"last_update_engine_seq": 42,
"last_cmd_id_hex": "string",
"correlation_id": "string"
}
{
"error_code": "string",
"message": "string",
"details": {}
}
{
"error_code": "string",
"message": "string",
"details": {}
}
{
"error_code": "string",
"message": "string",
"details": {}
}