維度評級摘要
GET/api/v1.0/quote/research/dimension-summary按機構或分析師 UID 拉取其覆蓋標的的評級摘要(多條歷史)。 dimension:INSTITUTION / ANALYST。 offset/count 按標的分頁(count 最大 20)。 每隻標的近一年的評級從 rating_items 攤平進 items,因此 items 條數可以大於 count。
請求參數
| 參數 | 類型 | 位置 | 必填 | 說明 |
|---|---|---|---|---|
dimension | string | 查詢 | 否 | 維度 |
uid | string | 查詢 | 是 | 機構或分析師 UID |
market | string | 查詢 | 否 | 市場 |
page_flag | string | 查詢 | 否 | 翻頁標記。首頁不傳或傳空串;下一頁回傳上一頁響應 pagination.page_flag。只有 pagination.completed 為 true 時停止 |
page_size | int | 查詢 | 否 | 標的數,最大 20。歷史評級攤平後,items 可以多於該值 |
請求示例
bash
curl -X GET 'https://webapi.moomoo.com/api/v1.0/quote/research/dimension-summary?uid=value&market=US' \
-H 'Authorization: Bearer <AccessToken>' | jq響應參數
| 參數 | 類型 | 說明 |
|---|---|---|
data.items | object[] | |
data.items[].code | string | 標的 |
data.items[].rating | int | 評級 |
data.items[].target_price | string | 目標價 |
data.items[].recommendation_date | string | 建議日期,YYYY-MM-DD,時區隨標的市場 |
pagination.completed | bool | 是否已到末頁。只有 true 時停止翻頁 |
pagination.page_flag | string | 下一頁標記。completed 為 false 時回傳為下一次請求的 page_flag;末頁為空串 |
錯誤碼
| ret_code | error.code | 說明 |
|---|---|---|
| 0 | — | 成功 |
| -3 | invalid_parameter | 參數不合法 |
| -8 | unsupported | 不支持 |
| -10 | no_data | 沒有數據 |
響應示例
json
{
"ret_code": 0,
"ret_msg": "success",
"data": {
"items": [
{
"code": "US.AAPL",
"rating": 0,
"target_price": "example",
"recommendation_date": "2026-10-16"
}
]
},
"pagination": {
"page_flag": "",
"completed": true
}
}