Create DCA Plan
Create a new recurring investment plan for a security.
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 method parameters.
| Name | Type | Required | Description |
|---|---|---|---|
| symbol | string | YES | Security symbol, e.g. AAPL.US |
| amount | string | YES | Recurring investment amount |
| frequency | string | YES | Frequency: Daily, Weekly, Fortnightly, Monthly |
| day_of_week | string | NO | Day of week for weekly/fortnightly plans: mon–fri |
| day_of_month | integer | NO | Day of month for monthly plans (1–28) |
Request Example
Response
Response Example
json
{
"code": 0,
"message": "success",
"data": {
"id": "1225781523156889601"
}
}Response Status
| Status | Description | Schema |
|---|---|---|
| 200 | Success | CreateDcaResponse |
| 400 | Bad request | None |
Schemas
CreateDcaResponse
| Name | Type | Required | Description |
|---|---|---|---|
| id | string | true | ID of the newly created plan |

