Get Orders
/accounts/{accountId}/ordersHistoryReturn all orders for the specified account.
Path Parameters
The account identifier.
Query Parameters
Start timestamp in milliseconds. Example: 1736772969000.
End timestamp in milliseconds. Example: 1736772969000.
Page number (1-based). Defaults to 1.
Records per page. Defaults to 100.
Filter by ticker symbol. Example: AAPL.
Filter by order direction. Enum: buy; sell; sellShort; buyToCover. Multiple values joined with |, e.g. buy|sell.
Filter by order status. Enum: pending; filled; rejected; cancelled; partialFilled. Multiple values joined with |, e.g. pending|filled.
Response
Successful response.
Status indicator. ok on success.
Array of orders.
Unique order identifier.
Ticker symbol.
Security name.
Asset class.
Order direction.
Order type.
Requested quantity in shares.
Requested notional value (used when quantityType is amount).
How quantity is expressed.
Limit price for limit and stopLimit orders.
Stop trigger price for stop and stopLimit orders.
Time-in-force.
Extended hours participation.
Current order status.
true if the order is still open and working.
Number of shares filled so far.
Total notional value filled.
Average execution price.
Unix timestamp (ms) of the last fill. 0 if unfilled.
Unix timestamp (ms) of the last status change.
Exchange identifier.
Contract unit size.
Human-readable status message from the broker.
Message text.
Message severity.
Response
Error response.
Error code string, e.g. invalid_grant.
Human-readable error message.
Response Example
{
"s": "ok",
"d": [
{
"id": "0434111664758259712",
"instrument": "UPXI",
"name": "Upexi",
"securityType": "stock",
"side": "sell",
"type": "market",
"qty": 1.0,
"amount": 0.0,
"quantityType": "qty",
"limitPrice": 0.0,
"stopPrice": 0.0,
"durationType": "Day",
"extendHours": "Regular",
"status": "Rejected",
"isActive": false,
"filledQty": 0.0,
"filledAmount": 0.0,
"avgPrice": 0.0,
"filledTime": 0,
"lastModified": 1728569086321,
"exchange": "186",
"unit": 1,
"message": {
"text": "Order is rejected: Corporate action in progress, trading restricted temporarily",
"type": "error"
}
}
]
}