# Get Hot List

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

  • Description

    Get hot list, returning a list of stocks ranked by popularity in a specified market, supporting sorting by trade heat, search heat, news heat, and comprehensive heat, with market cap filtering.

  • Parameters

    Parameter Type Description
    market Market Market type (HK/US) (required)
    sort_field HotListSortField Sort field, default comprehensive heat
    sort_dir RankSortDir Sort direction, default descending
    count int Return count [1, 200], default 10
    offset int Start position, default 0
    filter_list list[HotListFilter] Filter condition list (market cap)
  • Input Limits

    • filter_list Filter Conditions(HotListFilter):

      Constructor Parameter Description
      indicator_type Filter indicator type (HotListIndicatorType, required)
      interval_min Range minimum (closed interval)
      interval_max Range maximum (closed interval)
  • Return

    Parameter Type Description
    ret RET_CODE API call result
    data pd.DataFrame When ret == RET_OK, returns (all_count, DataFrame) tuple
    str When ret != RET_OK, returns error description
    • Data format:
      Field Type Description
      security str Stock code (e.g. 'US.TSLA')
      name str Stock name
      trade_heat float Trade heat
      trade_heat_change float Trade heat change
      search_heat float Search heat
      search_heat_change float Search heat change
      news_heat float News heat
      news_heat_change float News heat change
      average_heat float Comprehensive heat
      average_heat_change float Comprehensive heat change
      news_type str News type ("Community"=community discussion, "News"=news)
      news_title str News/discussion title
      news_url str News URL (valid when 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'Total count: {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

API Limits

  • Maximum 60 requests within 30 seconds
  • Only the first page of paginated requests counts toward rate limiting