跳轉到內容

選股指標

獲取選股器支持的所有指標定義,包含鍵值、名稱、單位和可用範圍,可用於構建自定義篩選條件。

CLI
longbridge screener indicators

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

StatusDescriptionSchema
200成功ScreenerIndicatorsResponse
400請求錯誤None

Schemas

ScreenerIndicatorsResponse

NameTypeRequiredDescription
groupsobject[]false指標分組
∟ group_namestringfalse分組名稱
∟ group_typestringfalse分組類型(如 rangeQuotesDividendIndex
∟ indicatorsobject[]false該分組下的指標列表
∟ ∟ idintegerfalse指標 ID
∟ ∟ keystringfalse指標鍵值,用於構建篩選條件
∟ ∟ namestringfalse指標顯示名稱
∟ ∟ unitstringfalse單位(如 %
∟ ∟ categoryintegerfalse指標分類代碼
∟ ∟ descriptionstringfalse指標描述
∟ ∟ default_selectedbooleanfalse是否默認選中
∟ ∟ default_rangeRangeItem[]false默認篩選範圍
∟ ∟ value_rangesRangeItem[]false指標可選值範圍
∟ ∟ placesintegerfalse顯示小數位數
∟ ∟ sub_indicatorsobject[]false子指標定義
∟ ∟ tech_indicatorsobject[]false技術指標定義

RangeItem

NameTypeRequiredDescription
minstringfalse範圍下限(空字符串表示無下限)
maxstringfalse範圍上限(空字符串表示無上限)