某機構或分析師在某標的上的評級曲線點
GET/api/v1.0/quote/{code}/research/rating-plot獲取某機構或分析師在某標的上的評級曲線點。
請求參數
| 參數 | 類型 | 位置 | 必填 | 說明 |
|---|---|---|---|---|
code | string | 路徑 | 是 | 標的 |
uid | string | 查詢 | 是 | 機構或分析師 UID |
dimension | string | 查詢 | 否 | 維度,默認 INSTITUTION |
count | int | 查詢 | 否 | 點數,默認 50,最大 500 |
請求示例
bash
curl -X GET 'https://webapi.moomoo.com/api/v1.0/quote/US.AAPL/research/rating-plot?uid=value' \
-H 'Authorization: Bearer <AccessToken>' | jq響應參數
| 參數 | 類型 | 說明 |
|---|---|---|
data.items | object[] | |
data.items[].timestamp | int | 時間,Unix 微秒 |
data.items[].close_price | string | 收盤價 |
錯誤碼
| ret_code | error.code | 說明 |
|---|---|---|
| 0 | — | 成功 |
| -3 | invalid_parameter | 參數不合法 |
| -8 | unsupported | 不支持 |
| -10 | no_data | 沒有數據 |
響應示例
json
{
"ret_code": 0,
"ret_msg": "success",
"data": {
"items": [
{
"timestamp": 1710000000000000,
"close_price": "example"
}
]
}
}