Skip to content
Order Management

Historical Order Inquiry

This interface is used to query the historical order records for a specified securities account with pagination support. By providing the account number account_no and optional filter conditions such as stock symbol symbol, order status status, trade direction side, market market, and time range (start_at / end_at), combined with pagination parameters page and size, it returns the matching historical order list and a flag has_more indicating whether more data exists. The returned fields cover complete order information including order ID, order status, stock name, submitted price, submitted quantity, executed price, executed quantity, order type, time-in-force, trigger status, and settlement currency.

GEThttps://b-api.longbridge.xyz/v1/whaleapi/trade/order/history

Authorization

AuthorizationstringheaderRequired

Send the Broker ACCESS_TOKEN as Authorization: Bearer <token>.

Parameters

symbolstringOptional

Stock Symbol, in ticker.region format

statusstringOptional

Order Status

sidestringOptional

Side

marketstringOptional

Market

start_atstringOptional
end_atstringOptional
account_nostringRequired

Account Number

pagestringOptional

Page number

sizestringOptional

The Number Of Page Size

Responses

HTTP 200Fields are taken from the real responses definition for this operation in the published Whale OpenAPI spec (whale-openapi/Whale-openapi.json).
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

HTTP 400Bad request. Check the business error code in code and the error details in message.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

HTTP 401The user is not authenticated, or the login session has expired.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

HTTP 403The current account is not authorized to use this feature. Grant the required permission to the account in User Permission.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

HTTP 408The request timed out. Check the business error code in code and the error details in message.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

Whale Docs