与该宏观指标相关的其他指标及最新公布值
GET/api/v1.0/quote/macro/indicator-related获取与该宏观指标相关的其他指标及最新公布值。可能为空。
请求参数
| 参数 | 类型 | 位置 | 必填 | 说明 |
|---|---|---|---|---|
indicator_id | int | 查询 | 是 | 宏观指标 ID |
请求示例
bash
curl -X GET 'https://webapi.moomoo.com/api/v1.0/quote/macro/indicator-related?indicator_id=1' \
-H 'Authorization: Bearer <AccessToken>' | jq响应参数
| 参数 | 类型 | 说明 |
|---|---|---|
data.items | object[] | |
data.items[].indicator_id | int | 相关指标 ID |
data.items[].value | string | 公布值 |
错误码
| ret_code | error.code | 说明 |
|---|---|---|
| 0 | — | 成功 |
| -3 | invalid_parameter | 参数不合法 |
| -8 | unsupported | 不支持 |
| -10 | no_data | 没有数据 |
响应示例
json
{
"ret_code": 0,
"ret_msg": "success",
"data": {
"items": [
{
"indicator_id": 0,
"value": "example"
}
]
}
}