與該宏觀指標相關的其他指標及最新公佈值
GET/api/v1.0/quote/macro/indicator-related獲取與該宏觀指標相關的其他指標及最新公佈值。可能為空。
請求參數
| 參數 | 類型 | 位置 | 必填 | 說明 |
|---|---|---|---|---|
indicator_id | int | 查詢 | 是 | 宏觀指標 ID |
請求示例
bash
curl -X GET 'https://webapi.moomoo.com/api/v1.0/quote/macro/indicator-related?indicator_id=1' \
-H 'Authorization: Bearer <AccessToken>' | jq響應參數
| 參數 | 類型 | 說明 |
|---|---|---|
data.items | object[] | |
data.items[].indicator_id | int | 相關指標 ID |
data.items[].value | string | 公佈值 |
錯誤碼
| 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,
"value": "example"
}
]
}
}