Skip to content

系统 Python 指标目录 ​

GET /api/v1.0/quote/system-indicator-python-docs

列出指定语言下已发布且含 Python 源码的系统指标短目录。需登录用户;目录一次返回,不分页且不含源码。使用返回的 guid 与相同 locale 获取源码与参数说明。

请求参数 ​

参数类型位置必填说明
localestring查询否语言,默认 zh-CN,支持 en、zh-CN、zh-Hans-CN、ja-JP;zh-Hans-CN 与 zh-CN 对应独立目录,不接受 zh-HK

请求示例 ​

bash
curl -s "https://webapi.futunn.com/api/v1.0/quote/system-indicator-python-docs?locale=en" \
  -H "Authorization: Bearer <AccessToken>"

响应字段 ​

以下为 data 内字段。

字段类型说明
localestring实际使用的语言
catalog_versionstring整份快照的内容哈希,覆盖 guid、说明、源码和参数;正文变更也会更新版本
itemsobject[]该语言下全部符合条件的指标列表,不含源码,不分页
items[].guidstring详情查询主键,已去除首尾空白
items[].py_indicator_namestringPython 指标名,允许为空串
items[].indicator_short_namestring指标简称
items[].indicator_namestring指标名称
items[].summarystring短说明,最多 200 个码点,允许为空串

响应示例 ​

json
{
  "code": 0,
  "message": "success",
  "data": {
    "locale": "en",
    "catalog_version": "2b8f67",
    "items": [
      {
        "guid": "901A30FB285C4f1aB536F3829DD41B6C",
        "py_indicator_name": "MA",
        "indicator_short_name": "MA",
        "indicator_name": "Moving Average",
        "summary": "Moving average of the closing price."
      }
    ]
  }
}

错误码 ​

失败响应(code != 0)会在顶层附加 trace_id(code=0 时省略)。

code说明
-3请求参数不合法,例如传入不支持的 locale(如 zh-HK)
-5未登录、用户归属地不在支持范围(支持 CN/HKG/US/SG/AU/JP)或内部查询失败
-9当前访问策略拒绝
-11请求过于频繁,按 Retry-After 秒数退避
-13限频服务暂不可用