宏观指标概览
GET/api/v1.0/quote/macro/indicator-overview获取宏观指标概览:重要程度、更新频率、货币、简况。
请求参数
| 参数 | 类型 | 位置 | 必填 | 说明 |
|---|---|---|---|---|
indicator_id | int | 查询 | 是 | 宏观指标 ID |
请求示例
bash
curl -X GET 'https://webapi.moomoo.com/api/v1.0/quote/macro/indicator-overview?indicator_id=1' \
-H 'Authorization: Bearer <AccessToken>' | jq响应参数
| 参数 | 类型 | 说明 |
|---|---|---|
data.importance | int | 重要程度,重要程度代码 |
data.update_frequency | int | 更新频率,更新频率代码 |
data.currency | string | 货币 |
data.overview | string | 指标简况 |
错误码
| ret_code | error.code | 说明 |
|---|---|---|
| 0 | — | 成功 |
| -3 | invalid_parameter | 参数不合法 |
| -8 | unsupported | 不支持 |
| -10 | no_data | 没有数据 |
响应示例
json
{
"ret_code": 0,
"ret_msg": "success",
"data": {
"importance": 0,
"update_frequency": 0,
"currency": "example",
"overview": "example"
}
}