定期投資交易歷史
獲取指定定期投資計劃的執行歷史,包含交易日期、金額和價格。
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 | 是否有更多紀錄 |

