選股指標
獲取選股器支持的所有指標定義,包含鍵值、名稱、單位和可用範圍,可用於構建自定義篩選條件。
接口:GET /v1/quote/ai/screener/indicators
SDK Links
Python | longport.openapi.ScreenerContext.screener_indicators |
Rust | longport::screener::ScreenerContext#screener_indicators |
Go | ScreenerContext.ScreenerIndicators |
Node.js | ScreenerContext#screenerIndicators |
Parameters
SDK 方法參數。
此方法無參數。
Request Example
Response
Response Example
json
{
"code": 0,
"message": "success",
"data": {
"groups": [
{
"group_name": "公司規模與財務",
"indicators": [
{ "id": "1", "key": "marketcap", "name": "市值", "unit": "億", "min": null, "max": null }
]
}
]
}
}所有
key值已去除filter_前綴,id字段為字符串類型。
Response Status
| Status | Description | Schema |
|---|---|---|
| 200 | 成功 | ScreenerIndicatorsResponse |
| 400 | 請求錯誤 | None |
Schemas
ScreenerIndicatorsResponse
| Name | Type | Required | Description |
|---|---|---|---|
| groups | object[] | false | 指標分組 |
| ∟ group_name | string | false | 分組名稱 |
| ∟ indicators | object[] | false | 該分組下的指標 |
| ∟ ∟ id | string | false | 指標 ID(字符串類型) |
| ∟ ∟ key | string | false | 指標鍵值,用於構建篩選條件(不含 filter_ 前綴) |
| ∟ ∟ name | string | false | 指標顯示名稱 |
| ∟ ∟ unit | string | false | 單位(如 %、億) |
| ∟ ∟ min | string | false | 指標全局下限;null 表示無下限 |
| ∟ ∟ max | string | false | 指標全局上限;null 表示無上限 |