選股指標
獲取選股器支持的所有指標定義,包含鍵值、名稱、單位和可用範圍,可用於構建自定義篩選條件。
SDK Links
Parameters
SDK 方法參數。
此方法無參數。
Request Example
Response
Response Example
json
{
"code": 0,
"message": "success",
"data": {
"groups": [
{
"group_name": "市場",
"group_type": "range",
"indicators": [
{
"id": -1,
"key": "filter_market",
"name": "市場",
"unit": "",
"category": 0,
"description": "",
"default_selected": false,
"default_range": [],
"value_ranges": [],
"places": 0,
"sub_indicators": [],
"tech_indicators": []
}
]
},
{
"group_name": "行情類指標",
"group_type": "Quotes",
"indicators": [
{
"id": 1,
"key": "filter_marketcap",
"name": "市值",
"unit": "億",
"category": 1,
"description": "",
"default_selected": true,
"default_range": [{"min": "10", "max": "1000"}],
"value_ranges": [{"min": "", "max": "10"}, {"min": "10", "max": "100"}],
"places": 2,
"sub_indicators": [],
"tech_indicators": []
}
]
}
]
}
}Response Status
| Status | Description | Schema |
|---|---|---|
| 200 | 成功 | ScreenerIndicatorsResponse |
| 400 | 請求錯誤 | None |
Schemas
ScreenerIndicatorsResponse
| Name | Type | Required | Description |
|---|---|---|---|
| groups | object[] | false | 指標分組 |
| ∟ group_name | string | false | 分組名稱 |
| ∟ group_type | string | false | 分組類型(如 range、Quotes、DividendIndex) |
| ∟ indicators | object[] | false | 該分組下的指標列表 |
| ∟ ∟ id | integer | false | 指標 ID |
| ∟ ∟ key | string | false | 指標鍵值,用於構建篩選條件 |
| ∟ ∟ name | string | false | 指標顯示名稱 |
| ∟ ∟ unit | string | false | 單位(如 %、億) |
| ∟ ∟ category | integer | false | 指標分類代碼 |
| ∟ ∟ description | string | false | 指標描述 |
| ∟ ∟ default_selected | boolean | false | 是否默認選中 |
| ∟ ∟ default_range | RangeItem[] | false | 默認篩選範圍 |
| ∟ ∟ value_ranges | RangeItem[] | false | 指標可選值範圍 |
| ∟ ∟ places | integer | false | 顯示小數位數 |
| ∟ ∟ sub_indicators | object[] | false | 子指標定義 |
| ∟ ∟ tech_indicators | object[] | false | 技術指標定義 |
RangeItem
| Name | Type | Required | Description |
|---|---|---|---|
| min | string | false | 範圍下限(空字符串表示無下限) |
| max | string | false | 範圍上限(空字符串表示無上限) |