定期投资交易历史
获取指定定期投资计划的执行历史,包含交易日期、金额和价格。
SDK Links
Parameters
SDK 方法参数。
| Name | Type | Required | Description |
|---|---|---|---|
| id | string | 是 | 计划 ID(路径参数) |
| page | integer | 否 | 页码(从 1 开始,默认:1) |
| size | integer | 否 | 每页数量(默认:20) |
Request Example
Response
Response Example
json
{
"code": 0,
"message": "success",
"data": {
"has_more": false,
"records": [
{
"symbol": "AAPL.US",
"order_id": "123456",
"status": "Filled",
"action": "Buy",
"order_type": "Market",
"executed_qty": "1",
"executed_price": "180.50",
"executed_amount": "180.50",
"created_at": "1763769600",
"rejected_reason": ""
}
]
}
}Response Status
| Status | Description | Schema |
|---|---|---|
| 200 | 成功 | DcaHistoryResponse |
| 400 | 请求错误 | None |
Schemas
DcaHistoryResponse
| Name | Type | Required | Description |
|---|---|---|---|
| records | object[] | true | 执行记录列表, |
| ∟ symbol | string | true | 证券代码 |
| ∟ order_id | string | false | 关联订单 ID |
| ∟ status | string | false | 执行状态 |
| ∟ action | string | false | 操作类型 |
| ∟ order_type | string | false | 订单类型 |
| ∟ executed_qty | string | false | 成交数量 |
| ∟ executed_price | string | false | 成交价格 |
| ∟ executed_amount | string | false | 成交金额 |
| ∟ rejected_reason | string | false | 拒绝原因(如有) |
| ∟ created_at | string | false | 执行时间 |
| ∟ created_at | string | false | 执行时间 |
| ∟ rejected_reason | string | false | 拒绝原因(如有) |
| has_more | boolean | false | 是否有更多记录 |

