Query orders

Note

Query orders with URL query parameters. brokerClientId is optional. The date range defaults to today; use orderStatus to filter and lastTimestamp for incremental queries.

Results are returned in full in data.order, without pagination. Each order includes status, quantities, prices, fees, timestamps, and an embedded trades list.

rejectReason is returned as a Base64-encoded string for rejected orders; decode it for display. See Trading conventions for status values.

Empty results and errors

When there are no matching orders, a successful response can be {"code":200,"message":"success","data":{"order":[]}}. The result need not include a status field.

An unknown or unbound brokerClientId returns HTTP 200 with business code 112003, for example {"code":112003,"message":"Account not found or not bound"}. This error can omit data.

Query Params
string

Account ID identifying the client account for the request.

string

Start trade date, YYYY-MM-DD. Defaults to today.

string

End trade date, YYYY-MM-DD. Defaults to today.

string
enum

Filter by order status.

string

Incremental cursor, 17 digits: YYYYMMDDHHmmssSSS.

string
enum

Order channel: I.

Allowed:
Headers
string

Trace ID. Generated by the server if omitted.

Responses

Language
LoadingLoading…
Response
Choose an example:
application/json