系统 Python 指标目录
GET/api/v1.0/quote/system-indicator-python-docs列出指定语言下已发布且含 Python 源码的系统指标短目录。需登录用户;目录一次返回,不分页且不含源码。使用返回的 guid 与相同 locale 获取源码与参数说明。
请求参数
| 参数 | 类型 | 位置 | 必填 | 说明 |
|---|---|---|---|---|
locale | string | 查询 | 否 | 语言,默认 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 内字段。
| 字段 | 类型 | 说明 |
|---|---|---|
locale | string | 实际使用的语言 |
catalog_version | string | 整份快照的内容哈希,覆盖 guid、说明、源码和参数;正文变更也会更新版本 |
items | object[] | 该语言下全部符合条件的指标列表,不含源码,不分页 |
items[].guid | string | 详情查询主键,已去除首尾空白 |
items[].py_indicator_name | string | Python 指标名,允许为空串 |
items[].indicator_short_name | string | 指标简称 |
items[].indicator_name | string | 指标名称 |
items[].summary | string | 短说明,最多 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 | 限频服务暂不可用 |