選股策略詳情
根據策略 ID 獲取單個選股策略的完整配置,包含所有指標分組和各指標的篩選範圍。
接口:GET /v1/quote/ai/screener/strategy/{id}(策略 ID 為路徑參數)
SDK Links
Python | longport.openapi.ScreenerContext.screener_strategy |
Rust | longport::screener::ScreenerContext#screener_strategy |
Go | ScreenerContext.ScreenerStrategy |
Node.js | ScreenerContext#screenerStrategy |
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": {
"id": 19,
"name": "今日大涨股票",
"market": "US",
"type": "platform",
"filter": {
"filters": [
{ "key": "prevchg", "min": "2", "max": "", "tech_values": {} }
]
}
}
}Response Status
| Status | Description | Schema |
|---|---|---|
| 200 | 成功 | ScreenerStrategyDetail |
| 400 | 請求錯誤 | None |
Schemas
ScreenerStrategyDetail
| Name | Type | Required | Description |
|---|---|---|---|
| id | integer | false | 策略 ID |
| name | string | false | 策略名稱 |
| market | string | false | 目標市場 |
| type | string | false | 策略類型 |
| filter | object | false | 篩選配置 |
| ∟ filters | object[] | false | 篩選條件列表 |
| ∟ ∟ key | string | false | 指標鍵值(不含 filter_ 前綴) |
| ∟ ∟ min | string | false | 下限 |
| ∟ ∟ max | string | false | 上限 |
| ∟ ∟ tech_values | object | false | 技術指標參數 |