计算定投日期
根据给定的定投计划参数,计算下一次预计交易日期。
SDK Links
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| symbol | 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": {
"trade_date": "2024-02-15"
}
}Response Status
| Status | Description | Schema |
|---|---|---|
| 200 | 成功 | DcaCalcDateResult |
| 400 | 请求错误 | None |
Schemas
DcaCalcDateResult
| Name | Type | Required | Description |
|---|---|---|---|
| trade_date | string | true | 下一次预计交易日期(YYYY-MM-DD) |

