# 获取热议榜

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 次请求
  • 分页请求仅首页计入限频统计