宏观栏目页焦点数据
GET/api/v1.0/quote/macro/focus获取宏观栏目页焦点数据。region 与 quote.macro_indicator_list 相同(含 HK)。
请求参数
| 参数 | 类型 | 位置 | 必填 | 说明 |
|---|---|---|---|---|
region | string | 查询 | 是 | 地区 |
请求示例
bash
curl -X GET 'https://webapi.moomoo.com/api/v1.0/quote/macro/focus?region=HK' \
-H 'Authorization: Bearer <AccessToken>' | jq响应参数
| 参数 | 类型 | 说明 |
|---|---|---|
data.items | object[] | |
data.items[].indicator_id | int | 数据位指标 ID |
data.items[].explain | string | 趋势说明 |
data.popular_indicator_ids | string | 热门指标 ID |
错误码
| 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,
"explain": "example"
}
],
"popular_indicator_ids": "example"
}
}