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 DCA statistics summary including total invested amount and profit/loss.
Request
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
symbol | string | Optional | Filter statistics by security symbol. |
Response
Response properties
| Name | Type | Required | Description |
|---|---|---|---|
active_count | string | Optional | Number of active plans |
finished_count | string | Optional | Number of finished plans |
suspended_count | string | Optional | Number of suspended plans |
rest_days | string | Optional | Days until next investment |
total_amount | string | Optional | Total invested amount |
total_profit | string | Optional | Total profit/loss |
nearest_plans | object[] | Optional | Nearest upcoming DCA plans (same structure as DcaPlan) |
Response JSON example
{
"code": 0,
"message": "success",
"data": {
"active_count": "2",
"finished_count": "1",
"suspended_count": "0",
"rest_days": "3",
"total_amount": "5400",
"total_profit": "120.50",
"nearest_plans": [
{
"plan_id": "1239402174908207104",
"symbol": "AAPL.US",
"stock_name": "Apple Inc.",
"market": "US",
"status": "Active",
"per_invest_amount": "100",
"invest_frequency": "Monthly",
"invest_day_of_month": "15",
"next_trd_date": "1778853600",
"cum_amount": "0",
"cum_profit": "0"
}
]
}
}Error code
See the Error Codes page for the full list of error codes.