选股指标
获取选股器支持的所有指标定义,包含键值、名称、单位和可用范围,可用于构建自定义筛选条件。
接口: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 表示无上限 |