選股策略詳情
根據策略 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 | 技術指標數據數組 |