Skip to Content

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.

CLI
# List US orders
longbridge order
# Filter pending orders
longbridge order --status pending

Parameters

SDK method parameters.

NameTypeRequiredDescription
symbolstringNOFilter by symbol, e.g. AAPL.US
actionintNODirection filter: 0=all, 1=buy, 2=sell (default: 0)
start_atint64NOStart time (Unix seconds); 0 = last 90 days
end_atint64NOEnd time (Unix seconds); 0 = now
query_typeintNO0=all (incl. rejected), 1=pending, 2=filled only (default: 0)
pageintNOPage number, 1-based (default: 1)
limitintNOPage 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

StatusDescriptionSchema
200SuccessQueryUSOrdersResponse
400Bad requestNone

Schemas

QueryUSOrdersResponse

NameTypeRequiredDescription
ordersUSOrder[]trueList of orders matching the filter
total_countinttrueTotal number of matching orders

USOrder

NameTypeDescription
idstringOrder ID
symbolstringTrading symbol (e.g. AAPL.US)
actionstringDirection: Buy or Sell
order_typestringOrder type
statusstringOrder status
pricestringOrder price
quantitystringOrder quantity
submitted_atint64Submission time (Unix seconds)
updated_atint64Last update time (Unix seconds)