股息歷史
獲取指定證券的股息歷史及即將公布的股息信息。
SDK Links
Python | longport.openapi.FundamentalContext.dividends |
Rust | longport::fundamental::FundamentalContext#dividends |
Go | FundamentalContext.Dividends |
Node.js | FundamentalContext#dividends |
Parameters
SDK 方法參數。
| Name | Type | Required | Description |
|---|---|---|---|
| symbol | string | 是 | 證券代碼,例如 AAPL.US |
| start_date | string | 否 | 開始日期,格式 YYYY-MM-DD |
| end_date | string | 否 | 結束日期,格式 YYYY-MM-DD |
Request Example
Response
Response Example
json
{
"code": 0,
"message": "success",
"data": {
"list": [
{
"id": "12345",
"symbol": "AAPL.US",
"ex_date": "2026-02-07",
"payment_date": "2026-02-13",
"record_date": "2026-02-10",
"desc": "Cash dividend 0.25 USD"
}
]
}
}Response Status
| Status | Description | Schema |
|---|---|---|
| 200 | 成功 | DividendsResponse |
| 400 | 請求錯誤 | None |
Schemas
DividendsResponse
| Name | Type | Required | Description |
|---|---|---|---|
| list | object[] | true | 股息記錄列表,見 DividendItem |
| ∟ id | string | false | Dividend event ID |
| ∟ symbol | string | false | Security symbol |
| ∟ desc | string | false | Dividend description |
| ∟ ex_date | string | false | 除息日 |
| ∟ payment_date | string | false | Payment date |
| ∟ record_date | string | false | Record date |