跳转到内容

选股指标

获取选股器支持的所有指标定义,包含键值、名称、单位和可用范围,可用于构建自定义筛选条件。

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范围上限(空字符串表示无上限)