Account
Authorization
Signed mode: every request is signed with your App Key/Secret. Header set:
| Name | Type | Required | Description |
|---|---|---|---|
Authorization | string · header | Required | The account Access Token from the OpenAPI dashboard — passed as the raw token (no Bearer prefix) and included in the signature calculation. |
X-Api-Key | string · header | Required | Your App Key. |
X-Timestamp | string · header | Required | Request timestamp in seconds (Unix epoch). |
X-Api-Signature | string · header | Required | HMAC-SHA256 signature. Format: HMAC-SHA256 SignedHeaders=authorization;x-api-key;x-timestamp, Signature=. |
Longbridge HK / SG accounts only
This method is available to Longbridge HK / SG accounts only. It works with any supported symbol, including US stocks.
Get the execution history for a specific DCA plan including trade dates, amounts, and prices.
Request
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
plan_id | string | Required | DCA plan ID. |
page | integer | Required | Page number, starting from `1`. |
size | integer | Required | Page size (records per page). |
Response
Response properties
| Name | Type | Required | Description |
|---|---|---|---|
records | object[] | Required | List of execution records |
└ symbol | string | Required | Security symbol |
└ order_id | string | Optional | Associated order ID |
└ status | string | Optional | Execution status |
└ action | string | Optional | Action type (e.g. `buy`) |
└ order_type | string | Optional | Order type (e.g. `market`) |
└ executed_qty | string | Optional | Executed quantity |
└ executed_price | string | Optional | Executed price |
└ executed_amount | string | Optional | Executed cost amount |
└ rejected_reason | string | Optional | Rejection reason if failed |
└ created_at | string | Optional | Creation Unix timestamp |
has_more | boolean | Optional | Whether more records exist |
Response JSON example
{
"code": 0,
"message": "success",
"data": {
"has_more": false,
"records": [
{
"symbol": "AAPL.US",
"order_id": "123456",
"status": "Filled",
"action": "Buy",
"order_type": "Market",
"executed_qty": "1",
"executed_price": "180.50",
"executed_amount": "180.50",
"created_at": "1763769600",
"rejected_reason": ""
}
]
}
}Error code
See the Error Codes page for the full list of error codes.