创建定期投资计划
为指定证券创建新的定期投资计划。
longbridge dca create AAPL.US --amount 500 --frequency monthly --day-of-month 15
longbridge dca create TSLA.US --amount 200 --frequency weekly --day-of-week monSDK Links
Parameters
SDK 方法参数。
| Name | Type | Required | Description |
|---|---|---|---|
| symbol | string | 是 | 证券代码,例如 AAPL.US |
| amount | string | 是 | 定投金额 |
| frequency | string | 是 | 频率:Daily(每日)、Weekly(每周)、Fortnightly(每两周)、Monthly(每月) |
| day_of_week | string | 否 | 每周/每两周计划的执行星期:mon–fri |
| day_of_month | integer | 否 | 每月计划的执行日期(1–28) |
Request Example
Response
Response Example
json
{
"code": 0,
"message": "success",
"data": {
"id": "1225781523156889601"
}
}Response Status
| Status | Description | Schema |
|---|---|---|
| 200 | 成功 | CreateDcaResponse |
| 400 | 请求错误 | None |
Schemas
CreateDcaResponse
| Name | Type | Required | Description |
|---|---|---|---|
| id | string | true | 新创建计划的 ID |

