估值指標
獲取當前估值指標(市盈率、市凈率、市銷率、股息率)及 5 年歷史區間數據。
SDK Links
Python | longport.openapi.FundamentalContext.valuations |
Rust | longport::fundamental::FundamentalContext#valuations |
Go | FundamentalContext.Valuations |
Node.js | FundamentalContext#valuations |
Parameters
SDK 方法參數。
| Name | Type | Required | Description |
|---|---|---|---|
| symbol | string | 是 | 證券代碼,例如 AAPL.US |
| indicator | string | 否 | 指標篩選:pe、pb、ps、dvd_yld |
Request Example
Response
Response Example
json
{
"code": 0,
"message": "success",
"data": {
"metrics": {
"pe": { "current": "29.5", "high": "35.2", "low": "18.0", "median": "26.0" },
"pb": { "current": "45.1", "high": "50.0", "low": "30.0", "median": "42.0" }
}
}
}Response Status
| Status | Description | Schema |
|---|---|---|
| 200 | 成功 | ValuationsResponse |
| 400 | 請求錯誤 | None |
Schemas
ValuationsResponse
| Name | Type | Required | Description |
|---|---|---|---|
| metrics | object | 是 | 估值指標映射 |
| ∟ pe | object | 否 | 市盈率數據 |
| ∟∟ current | string | 是 | 當前值 |
| ∟∟ high | string | 是 | 5 年最高值 |
| ∟∟ low | string | 是 | 5 年最低值 |
| ∟∟ median | string | 是 | 5 年中位值 |