Get order
Retrieve order details
Fetches the status and details of a specific order for the given account. Note: Order placement is asynchronous. This endpoint may return HTTP 404 if the order has not yet been indexed for retrieval. In some cases, the order may already be active in the market but momentarily not yet visible through this API due to eventual consistency.
Parameters
Path Parameters
Parameters
Name | Type | Required | Description |
---|---|---|---|
accountId | string | Yes | - |
orderId | string (uuid) | Yes | - |
Body
application/jsonNo request body defined
Responses
Response
Creation time of the order
MARKET
,LIMIT
,STOP
,STOP_LIMIT
BUY
,SELL
NEW
,PARTIALLY_FILLED
,CANCELLED
,QUEUED_CANCELLED
,FILLED
,REJECTED
,PENDING_REPLACE
,PENDING_CANCEL
,EXPIRED
,REPLACED
Quantity of the order, mutually exclusive with notional value
Notional value (dollar amount) of the order, mutually exclusive with quantity
Present if type = LIMIT
Present if type = STOP
The time the order reached a terminal state, like CANCELLED, FILLED, REJECTED, REPLACED
Present if the order is a single-leg option order
OPEN
,CLOSE
The filled quantity of the order, present if the order had at least one trade
The average price per unit, present if the order had at least one trade
If instrument.type = MULTI_LEG_INSTRUMENT, this contains the list of legs
Response
Order not found (may not be processed yet).
No response body defined
curl --request GET \
--url https://api.public.com/userapigateway/trading/{accountId}/order/{orderId} \
--header 'Authorization: Bearer YOUR_API_KEY'
{
"orderId": "ef0e12e1-2797-4b61-9c75-efae493d7021",
"instrument": {
"symbol": "string",
"type": "EQUITY"
},
"createdAt": "2023-11-07T05:31:56Z",
"type": "MARKET",
"side": "BUY",
"status": "NEW",
"quantity": "string",
"notionalValue": "string",
"expiration": {
"timeInForce": "DAY",
"expirationTime": "2023-11-07T05:31:56Z"
},
"limitPrice": "string",
"stopPrice": "string",
"closedAt": "2023-11-07T05:31:56Z",
"openCloseIndicator": "OPEN",
"filledQuantity": "string",
"averagePrice": "string",
"legs": [
{
"instrument": {
"symbol": "string",
"type": "EQUITY"
},
"side": "BUY",
"openCloseIndicator": "OPEN",
"ratioQuantity": 123
}
]
}