盈虧流水
查詢賬戶資金流水歷史,包含入金、出金、股息和結算等。
SDK Links
Parameters
SDK 方法參數。
| Name | Type | Required | Description |
|---|---|---|---|
| symbol | string | YES | 證券代碼 |
| page | integer | NO | 頁碼(預設 1) |
| size | integer | NO | 每頁數量(預設 20) |
| derivative | boolean | NO | 是否包含衍生品倉位 |
Request Example
Response
Response Example
json
{
"code": 0,
"message": "success",
"data": {
"has_more": false,
"flows_list": [
{
"code": "AAPL",
"symbol": "AAPL.US",
"direction": "In",
"executed_date": "2025-11-22",
"executed_timestamp": "1763769600",
"executed_quantity": "10",
"executed_price": "180.50",
"executed_cost": "1805.00",
"describe": "Buy AAPL.US"
}
]
}
}Response Status
| Status | Description | Schema |
|---|---|---|
| 200 | 成功 | ProfitAnalysisFlowsResponse |
| 400 | 請求錯誤 | None |
Schemas
ProfitAnalysisFlowsResponse
| Name | Type | Required | Description |
|---|---|---|---|
| flows_list | object[] | true | 資金流水列表(分頁), |
| ∟ executed_date | string | true | 執行日期(如 2024-01-15) |
| ∟ executed_timestamp | string | false | 執行時間戳 |
| ∟ code | string | false | 證券代碼 |
| ∟ direction | string | false | 方向:In(買入)或 Out(賣出) |
| ∟ executed_quantity | string | false | 成交數量 |
| ∟ executed_price | string | false | 成交價格 |
| ∟ executed_cost | string | false | 成交成本 |
| ∟ describe | string | false | 描述說明 |
| has_more | boolean | false | 是否有更多頁 |

