# 獲取分析師評級概述

get_research_analyst_consensus(code)

  • 介紹

    獲取指定股票近3個月的分析師綜合評級、目標價區間及各檔評級佔比

  • 參數

    參數 類型 說明
    code str 股票代碼
  • 返回

    參數 類型 說明
    ret RET_CODE 接口調用結果
    data dict 當 ret == RET_OK,返回分析師評級數據字典
    str 當 ret != RET_OK,返回錯誤描述
    • 返回字典包含以下欄位:

      欄位 類型 說明
      highest float 最高目標價
      average float 平均目標價
      lowest float 最低目標價
      rating ResearchRatingType 綜合評級
      total int 總分析師人數
      update_time int 更新時間戳(秒,評級數據更新時間)
      update_time_str str 更新日期
      buy float Buy 評級佔比
      hold float Hold 評級佔比
      sell float Sell 評級佔比
      strong_buy float Strong Buy 佔比
      underperform float Underperform 佔比
  • Example

import json
from futu import *
quote_ctx = OpenQuoteContext(host='127.0.0.1', port=11111)

ret, data = quote_ctx.get_research_analyst_consensus("HK.00700")
if ret == RET_OK:
    print(json.dumps(data, indent=2, ensure_ascii=False))
else:
    print('error:', data)
quote_ctx.close()
1
2
3
4
5
6
7
8
9
10
  • Output
{
  "highest": 820.0,
  "average": 716.0,
  "lowest": 579.51,
  "rating": 5,
  "total": 44,
  "update_time": 1778469178,
  "update_time_str": "2026-05-11",
  "buy": 22.727,
  "hold": 0.0,
  "sell": 0.0,
  "strong_buy": 77.273,
  "underperform": 0.0
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14

接口限制

  • 每 30 秒內最多請求 30 次。
  • 支持正股及 REIT。