The macro-indicator list for a country/region
GET/api/v1.0/quote/macro/indicatorsGet the macro-indicator list for a country/region, flattened by category. Returns category_name / indicator_id / name / sc_name / tc_name; pass indicator_id to quote.macro_indicator_history. category_name is the segment tab copy when tabs are present, otherwise the All-tab copy. Supports HK / US / JP / SG / AU / CA / MY / CN. For history use quote.macro_indicator_history; FedWatch use quote.fed_watch_target_rate / quote.fed_watch_dot_plot.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
region | string | query | yes | Region: HK / US / JP / SG / AU / CA / MY / CN |
Example
bash
curl -X GET 'https://webapi.moomoo.com/api/v1.0/quote/macro/indicators?region=HK' \
-H 'Authorization: Bearer <AccessToken>' | jqResponse parameters
| Name | Type | Description |
|---|---|---|
data.category_name | string | Category name |
data.indicator_id | int | Macro indicator ID , used by the history API |
data.name | string | Indicator English name |
data.sc_name | string | Indicator Simplified Chinese name |
data.tc_name | string | Indicator Traditional Chinese name |
Errors
| ret_code | error.code | Description |
|---|---|---|
| 0 | — | Success |
| -3 | invalid_parameter | Missing or invalid parameter |
| -8 | unsupported | Not supported |
| -10 | no_data | No data |
Response example
json
{
"ret_code": 0,
"ret_msg": "success",
"data": {
"category_name": "example",
"indicator_id": 0,
"name": "example",
"sc_name": "example",
"tc_name": "example"
}
}