宏觀欄目頁焦點數據
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"
}
}