創建定期投資計劃
為指定證券創建新的定期投資計劃。
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 |

