獲取定期投資計劃列表
獲取當前用戶的所有定期投資(DCA)計劃。
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 方法參數。
| Name | Type | Required | Description |
|---|---|---|---|
| status | string | 否 | 按計劃狀態篩選:Active(進行中)、Suspended(已暫停)、Finished(已結束) |
| symbol | string | 否 | 按證券代碼篩選 |
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 | 成功 | DcaListResponse |
| 400 | 請求錯誤 | None |
Schemas
DcaListResponse
| Name | Type | Required | Description |
|---|---|---|---|
| plans | object[] | 是 | 定投計劃列表,見 DcaPlan |
DcaPlan
| Name | Type | Required | Description |
|---|---|---|---|
| plan_id | string | 是 | 定投計劃 ID |
| symbol | string | 是 | 證券代碼 |
| stock_name | string | 否 | 標的名稱 |
| market | string | 否 | 市場 |
| status | string | 否 | 計劃狀態:Active(進行中)、Suspended(已暫停)、Finished(已結束) |
| per_invest_amount | string | 否 | 每次投入金額 |
| invest_frequency | string | 否 | 投資頻率:Daily、Weekly、Fortnightly、Monthly |
| invest_day_of_week | string | 否 | 每週扣款日 |
| invest_day_of_month | string | 否 | 每月扣款日 |
| next_trd_date | string | 否 | 下次交易日 |
| cum_amount | string | 否 | 累計投入金額 |
| cum_profit | string | 否 | 累計盈虧 |
| average_cost | string | 否 | 平均持倉成本 |
| allow_margin_finance | boolean | 否 | 是否允許融資 |
| alter_hours | string | 否 | 提前提醒小時數 |
| display_account | string | 否 | 賬戶顯示名稱 |
| account_channel | string | 否 | 賬戶渠道 |
| aaid | string | 否 | 賬戶資產 ID |
| member_id | string | 否 | 用戶 ID |
| issue_number | string | 否 | 已執行次數 |
| created_at | string | 否 | 創建時間 |
| updated_at | string | 否 | 最後更新時間 |

