Related macro indicators and their latest prints
GET/api/v1.0/quote/macro/indicator-relatedRelated macro indicators and their latest prints. May be empty.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
indicator_id | int | query | yes | Macro indicator ID |
Example
bash
curl -X GET 'https://webapi.moomoo.com/api/v1.0/quote/macro/indicator-related?indicator_id=1' \
-H 'Authorization: Bearer <AccessToken>' | jqResponse parameters
| Name | Type | Description |
|---|---|---|
data.items | object[] | |
data.items[].indicator_id | int | Related indicator ID |
data.items[].value | string | Actual value |
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": {
"items": [
{
"indicator_id": 0,
"value": "example"
}
]
}
}