ETF 指标分析
GET/api/v1.0/quote/{symbol}/etf/indicator-analysisETF 量化指标分析:收益能力、抗风险能力、投资性价比三类策略及明细指标。 period:1=近1年 2=近3年 3=近5年。百分比以百分数返回,数值型指标以实际值返回。
请求参数
| 参数 | 类型 | 位置 | 必填 | 说明 |
|---|---|---|---|---|
symbol | string | 路径 | 是 | ETF 代码(路径参数),例: US.VOO / US.SPY |
period | int | 查询 | 否 | 统计周期:1=近1年(默认)/ 2=近3年 / 3=近5年 |
请求示例
bash
curl -X GET 'https://webapi.moomoo.com/api/v1.0/quote/US.AAPL/etf/indicator-analysis?period=1' \
-H 'Authorization: Bearer <AccessToken>' | jq响应参数
| 参数 | 类型 | 说明 |
|---|---|---|
data.items | object[] | |
data.update_time | integer | 更新时间,Unix 秒 |
data.items[].strategy | integer | 策略:PROFIT=收益能力 ANTI_RISK=抗风险 PRICE_PERF=投资性价比 |
data.items[].beat_peer_pct | string | 超越同类百分数 |
data.items[].rank | integer | 同类排名 |
data.items[].rank_count | integer | 同类总数 |
data.items[].indicators | object | 策略下的明细指标 |
data.items[].indicators[].name_id | string | 指标名多语言 ID 或原文 |
data.items[].indicators[].value | string | 指标值。百分比型为百分数(/1e7),数值型 /1e9 |
data.items[].indicators[].mean | string | 同类均值,缩放同 value |
data.items[].indicators[].value_type | integer | PERCENT=百分比 NUMBER=数值 |
data.items[].indicators[].rank | integer | 同类排名 |
data.items[].indicators[].rank_count | integer | 同类总数 |
data.items[].indicators[].is_excellent | string | 是否优秀 |
错误码
| ret_code | error.code | 说明 |
|---|---|---|
| 0 | — | 成功 |
| -3 | invalid_parameter | 参数缺失或不在允许范围内 |
| -7 | invalid_symbol | 标的不存在 |
| -8 | unsupported | 市场或品类不支持 |
| -9 | permission_denied | 没有对应权限 |
| -10 | no_data | 没有可返回的数据 |
| -11 | rate_limited | 调用过于频繁 |
响应示例
json
{
"ret_code": 0,
"ret_msg": "success",
"data": {
"update_time": "example",
"items": [
{
"strategy": 0,
"beat_peer_pct": "example",
"rank": 0,
"rank_count": 0,
"indicators": "example"
}
]
}
}