# 获取卖空异动榜

get_short_selling_rank(market=None, sort_field=None, sort_dir=None, count=10, offset=None, plate_list=None)

  • 介绍

    获取卖空异动榜,返回美股/港股卖空数据排行,支持14种排序维度和行业板块筛选,包含卖空数量、比例、空头持仓、回补天数等数据。

  • 参数

    参数 类型 说明
    market Market 市场类型(HK/US),默认 US
    sort_field ShortSellingSortField 排序字段,默认卖空变化量
    sort_dir RankSortDir 排序方向,默认降序
    count int 返回数量 [1, 35],默认 10
    offset int 起始位置,默认 0
    plate_list list[str] 行业板块代码列表(如 ['US.BK2024']),空=全部
  • 返回

    参数 类型 说明
    ret RET_CODE 接口调用结果
    data pd.DataFrame 当 ret == RET_OK,返回 (all_count, DataFrame) 元组
    str 当 ret != RET_OK,返回错误描述
    • 数据格式如下:
      字段 类型 说明
      security str 股票代码(如 'US.GME'
      name str 股票名称
      close_price float 收盘价
      change_ratio float 涨跌幅(%)
      change_ratio_5d float 5日涨跌幅(%)
      change_ratio_10d float 10日涨跌幅(%)
      volume int 成交量
      short_number int 卖空数量
      short_number_change int 卖空变化量
      short_ratio float 卖空比例(%)
      short_ratio_change float 卖空变化比例(%)
      short_position_volume int 空头持仓数量
      short_position_ratio float 空头持仓比例(%)
      days_to_cover float 回补天数
      week_avg_short_number int 近一周日均卖空
      week_avg_short_ratio float 近一周日均卖空比例(%)
      month_avg_short_number int 近一月日均卖空
      month_avg_short_ratio float 近一月日均卖空比例(%)
  • Example

from futu import *

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

ret, data = quote_ctx.get_short_selling_rank(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
总数据量: 0
  security           name  close_price  change_ratio  change_ratio_5d  change_ratio_10d     volume  short_number  short_number_change  short_ratio  short_ratio_change  short_position_volume  short_position_ratio  days_to_cover  week_avg_short_number  week_avg_short_ratio  month_avg_short_number  month_avg_short_ratio
0  US.SKYQ     Sky Quarry       1.9000         62.39            45.03              4.39  221413731      20302431             20226903         9.16            26780.66                 327119                  6.82            1.0                4111613                  9.19                 1136188                   8.26
1  US.TNON  Tenon Medical       0.6215         77.57             0.72              2.89  271138156      15289764             15273389         5.63            93272.60                 149174                  1.28            2.9                3063337                  5.01                  772705                   5.04
1
2
3
4

接口限制

  • 30 秒内最多 60 次请求
  • 分页请求仅首页计入限频统计