List DCA Plans
Get all recurring investment (DCA) plans for the current user.
SDK Links
Python | longbridge.openapi.DCAContext.list_dca |
Rust | longbridge::dca::DCAContext#list_dca |
Go | DCAContext.ListDca |
Node.js | DCAContext#listDca |
Java | DCAContext.getListDca |
C++ | longbridge::dca::DCAContext::list_dca |
Parameters
SDK method parameters.
| Name | Type | Required | Description |
|---|---|---|---|
| status | string | NO | Filter by plan status: Active, Suspended, Finished |
| symbol | string | NO | Filter by security symbol |
Request Example
Response
Response Example
json
{
"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"
}
]
}
}Response Status
| Status | Description | Schema |
|---|---|---|
| 200 | Success | DcaListResponse |
| 400 | Bad request | None |
Schemas
DcaListResponse
| Name | Type | Required | Description |
|---|---|---|---|
| plans | object[] | true | List of DCA plans, see DcaPlan |
DcaPlan
| Name | Type | Required | Description |
|---|---|---|---|
| plan_id | string | true | DCA plan ID |
| symbol | string | true | Security symbol |
| stock_name | string | false | Security name |
| market | string | false | Market |
| status | string | false | Plan status: Active, Suspended, Finished |
| per_invest_amount | string | false | Amount per investment |
| invest_frequency | string | false | Frequency: Daily, Weekly, Fortnightly, Monthly |
| invest_day_of_week | string | false | Day of week for weekly plans |
| invest_day_of_month | string | false | Day of month for monthly plans |
| next_trd_date | string | false | Next trade date |
| cum_amount | string | false | Cumulative invested amount |
| cum_profit | string | false | Cumulative profit/loss |
| average_cost | string | false | Average cost per share |
| allow_margin_finance | boolean | false | Whether margin financing is allowed |
| alter_hours | string | false | Reminder hours before trade |
| display_account | string | false | Account display name |
| account_channel | string | false | Account channel |
| aaid | string | false | Account asset ID |
| member_id | string | false | Member ID |
| issue_number | string | false | Execution count |
| created_at | string | false | Creation timestamp |
| updated_at | string | false | Last update timestamp |

