选股策略详情
根据策略 ID 获取单个选股策略的完整配置,包含所有指标分组和各指标的筛选范围。
SDK Links
Parameters
SDK 方法参数。
| Name | Type | Required | Description |
|---|---|---|---|
| id | integer | 是 | 策略 ID,来自 screener_recommend_strategies 或 screener_user_strategies |
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": "",
"min": "",
"max": "",
"value": "HK",
"tech_data": []
}
]
},
{
"group_name": "行情类指标",
"group_type": "Quotes",
"indicators": [
{
"id": 1,
"key": "filter_marketcap",
"name": "市值",
"unit": "亿",
"min": "100",
"max": "",
"value": "",
"tech_data": []
}
]
}
]
}
}Response Status
| Status | Description | Schema |
|---|---|---|
| 200 | 成功 | ScreenerStrategyDetail |
| 400 | 请求错误 | None |
Schemas
ScreenerStrategyDetail
| 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 | 指标单位(如 %、亿 等) |
| ∟ ∟ min | string | false | 最小值;空字符串表示无下限 |
| ∟ ∟ max | string | false | 最大值;空字符串表示无上限 |
| ∟ ∟ value | string | false | 固定值(用于非范围型指标,如市场选择器) |
| ∟ ∟ tech_data | array | false | 技术指标数据数组 |