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 all recurring investment (DCA) plans for the current user.
Request
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
status | string | Optional | Filter by plan status: `Active`, `Suspended`, `Finished`. |
symbol | string | Optional | Filter by security symbol, e.g. `AAPL.US`. |
Response
Response properties
| Name | Type | Required | Description |
|---|---|---|---|
plans | object[] | Required | List of DCA plans |
└ plan_id | string | Required | DCA plan ID |
└ symbol | string | Required | Security symbol |
└ stock_name | string | Optional | Security name |
└ market | string | Optional | Market |
└ status | string | Optional | Plan status: `Active`, `Suspended`, `Finished` |
└ per_invest_amount | string | Optional | Amount per investment |
└ invest_frequency | string | Optional | Frequency: `Daily`, `Weekly`, `Fortnightly`, `Monthly` |
└ invest_day_of_week | string | Optional | Day of week for weekly plans |
└ invest_day_of_month | string | Optional | Day of month for monthly plans |
└ next_trd_date | string | Optional | Next trade date |
└ cum_amount | string | Optional | Cumulative invested amount |
└ cum_profit | string | Optional | Cumulative profit/loss |
└ average_cost | string | Optional | Average cost per share |
└ allow_margin_finance | boolean | Optional | Whether margin financing is allowed |
└ alter_hours | string | Optional | Reminder hours before trade |
└ display_account | string | Optional | Account display name |
└ account_channel | string | Optional | Account channel |
└ aaid | string | Optional | Account asset ID |
└ member_id | string | Optional | Member ID |
└ issue_number | string | Optional | Execution count |
└ created_at | string | Optional | Creation timestamp |
└ updated_at | string | Optional | Last update timestamp |
Response JSON example
{
"code": 0,
"message": "success",
"data": {
"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",
"invest_day_of_week": "",
"next_trd_date": "1778853600",
"cum_amount": "0",
"cum_profit": "0",
"average_cost": "0",
"allow_margin_finance": false,
"alter_hours": "6",
"display_account": "LBPT10065023",
"member_id": "3162",
"aaid": "20975338",
"account_channel": "lb_papertrading",
"issue_number": 0,
"created_at": "1778725628",
"updated_at": "1778725628"
}
]
}
}Error code
See the Error Codes page for the full list of error codes.