# 獲取熱議榜

get_hot_list(market, sort_field=None, sort_dir=None, count=10, offset=None, filter_list=None)

  • 介紹

    獲取熱議榜,返回指定市場中熱度排行的股票列表,支持按交易熱度、搜索熱度、資訊熱度、綜合熱度排序,並可按市值篩選。

  • 參數

    參數 類型 說明
    market Market 市場類型(HK/US)(必填)
    sort_field HotListSortField 排序字段,默認綜合熱度
    sort_dir RankSortDir 排序方向,默認降序
    count int 返回數量 [1, 200],默認 10
    offset int 起始位置,默認 0
    filter_list list[HotListFilter] 篩選條件列表(市值)
  • 輸入限制

    • filter_list 篩選條件(HotListFilter):

      構造參數 說明
      indicator_type 篩選因子類型(HotListIndicatorType,必填)
      interval_min 範圍最小值(閉區間)
      interval_max 範圍最大值(閉區間)
  • 返回

    參數 類型 說明
    ret RET_CODE 接口調用結果
    data pd.DataFrame 當 ret == RET_OK,返回 (all_count, DataFrame) 元組
    str 當 ret != RET_OK,返回錯誤描述
    • 數據格式如下:
      字段 類型 說明
      security str 股票代碼(如 'US.TSLA'
      name str 股票名稱
      trade_heat float 交易熱度
      trade_heat_change float 交易熱度變化
      search_heat float 搜索熱度
      search_heat_change float 搜索熱度變化
      news_heat float 資訊熱度
      news_heat_change float 資訊熱度變化
      average_heat float 綜合熱度
      average_heat_change float 綜合熱度變化
      news_type str 新聞類型("Community"=社區討論, "News"=資訊)
      news_title str 新聞/討論標題
      news_url str 資訊 URL(news_type="News" 時有效)
  • Example

from futu import *

quote_ctx = OpenQuoteContext(host='127.0.0.1', port=11111)

ret, data = quote_ctx.get_hot_list(market=Market.US, count=2)
if ret == RET_OK:
    all_count, df = data
    print(f'總數據量: {all_count}')
    print(df)
else:
    print('error:', data)

quote_ctx.close()
1
2
3
4
5
6
7
8
9
10
11
12
13
  • Output
總數據量: 6342
  security    name  trade_heat  trade_heat_change  search_heat  search_heat_change  news_heat  news_heat_change  average_heat  average_heat_change news_type                                         news_title                                           news_url
0  US.SPCX  SpaceX   9999995.0                0.0    9999972.0                 0.0  9999998.0               0.0     9999988.0                  0.0      News  SpaceX收漲1%,終結三連跌!首發債券獲約3.6...  https://news.futunn.com/post/55589925?lang=...
1    US.MU    美光科技   5578115.0                0.0    7923445.0                 0.0  1835896.0              -2.0     5112485.0                  0.0       N/A                                              N/A                                              N/A
1
2
3
4

接口限制

  • 30 秒內最多 60 次請求
  • 分頁請求僅首頁計入限頻統計