技术指标信号
GET/api/v1.0/quote/{symbol}/indicator-polarity获取指定标的在 1 日 K / 60 分 K / 1 分 K 下的 15 项常用技术指标(AR/BIAS/BR/CCI/KDJ/OSC/PSY/RSI6/RSI12/RSI24/VR/WMSR/MA/BOLL/MACD)多空极性综合评分与各项指标的超买/超卖/中性判定及当前指标数值。 指标极性历史回测胜率请用 quote.indicator_backtest。
请求参数
| 参数 | 类型 | 位置 | 必填 | 说明 |
|---|---|---|---|---|
symbol | string | 路径 | 是 | 股票代码(路径参数),例: US.TSLA / US.AAPL / HK.00700 |
period | string | 查询 | 否 | K 线周期:DAY_1=日 K(默认)/ HOUR_1=60 分 K / MINUTE_1=1 分 K |
请求示例
bash
curl -X GET 'https://webapi.moomoo.com/api/v1.0/quote/US.AAPL/indicator-polarity?period=1' \
-H 'Authorization: Bearer <AccessToken>' | jq响应参数
| 参数 | 类型 | 说明 |
|---|---|---|
data.items | object[] | |
data.overall_score | number | 技术指标多空综合评分(原始值放大 1000 倍) |
data.update_time | integer | 更新时间戳(毫秒) |
data.items[].indicator_id | integer | 指标枚举 ID(1=AR_26, 2=BIAS_24, 3=BR_26, 4=CCI_14, 5=KDJ_9_3_3, 6=OSC_20, 7=PSY_12, 8=RSI_6, 9=RSI_12, 10=RSI_24, 11=VR_26, 12=WMSR_13, 13=MA_5_10_20_30_60, 14=BOLL_20_2, 15=MACD_12_26_9) |
data.items[].indicator_name | integer | 指标名称 |
data.items[].polarity | integer | 极性状态:SEVERELY_OVER_BOUGHT=严重超买 / OVER_BOUGHT=超买(看空) / NEUTRAL=中性 / OVER_SOLD=超卖(看多) / SEVERELY_OVER_SOLD=严重超卖 |
data.items[].values | number | 当前指标值数组(已除以 10^9;KDJ 依次为 [K,D,J],MA 依次为 [MA5,MA10,MA20,MA30,MA60],BOLL 依次为 [上轨,中轨,下轨],MACD 依次为 [DIF,DEA,MACD]) |
错误码
| 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": {
"overall_score": "example",
"update_time": "example",
"items": [
{
"indicator_id": 0,
"indicator_name": 0,
"polarity": 0,
"values": "example"
}
]
}
}