US Order History
Longbridge US Accounts
This method is only available for US data-center accounts.
Query historical and pending orders for US accounts with pagination and filtering.
SDK Links
Parameters
SDK method parameters.
| Name | Type | Required | Description |
|---|---|---|---|
| symbol | string | NO | Filter by symbol, e.g. AAPL.US |
| action | int | NO | Direction filter: 0=all, 1=buy, 2=sell (default: 0) |
| start_at | int64 | NO | Start time (Unix seconds); 0 = last 90 days |
| end_at | int64 | NO | End time (Unix seconds); 0 = now |
| query_type | int | NO | 0=all (incl. rejected), 1=pending, 2=filled only (default: 0) |
| page | int | NO | Page number, 1-based (default: 1) |
| limit | int | NO | Page size (default: 20) |
Request Example
Response
Response Example
json
{
"orders": [
{
"id": "701276261045858304",
"symbol": "AAPL.US",
"action": "Buy",
"order_type": "LO",
"status": "Filled",
"price": "185.00",
"quantity": "10",
"submitted_at": 1751866334,
"updated_at": 1751866400
}
],
"total_count": 1
}Response Status
| Status | Description | Schema |
|---|---|---|
| 200 | Success | QueryUSOrdersResponse |
| 400 | Bad request | None |
Schemas
QueryUSOrdersResponse
| Name | Type | Required | Description |
|---|---|---|---|
| orders | USOrder[] | true | List of orders matching the filter |
| total_count | int | true | Total number of matching orders |
USOrder
| Name | Type | Description |
|---|---|---|
| id | string | Order ID |
| symbol | string | Trading symbol (e.g. AAPL.US) |
| action | string | Direction: Buy or Sell |
| order_type | string | Order type |
| status | string | Order status |
| price | string | Order price |
| quantity | string | Order quantity |
| submitted_at | int64 | Submission time (Unix seconds) |
| updated_at | int64 | Last update time (Unix seconds) |