# Get Daily Short Volume

get_daily_short_volume(code, next_key=None, num=None)

  • Description

    Get daily short volume data for US or HK stocks, with pagination support

  • Parameters

    Parameter Type Description
    code str Stock code
    next_key str Pagination key
    num int Page size
  • Return

    Parameter Type Description
    ret RET_CODE API call result
    us_df pd.DataFrame US daily short volume data; error description string when ret != RET_OK
    hk_df pd.DataFrame HK daily short volume data; None when ret != RET_OK
    • US DataFrame (us_df) field description:

      Field Type Description
      timestamp int Trading day timestamp
      timestamp_str str Trading day string
      total_shares_short int Total short shares
      nasdaq_shares_short int NASDAQ short shares
      nyse_shares_short int NYSE short shares
      short_percent float Short ratio
      volume int Volume (shares)
      close_price float Close price
      last_close_price float Previous close price
      daily_trade_avg_ratio float Daily avg trade ratio
    • US us_df.attrs additional attributes:

      Attribute Type Description
      next_key str Pagination key
    • HK DataFrame (hk_df) field description:

      Field Type Description
      timestamp int Trading day timestamp
      timestamp_str str Trading day string
      shares_traded int Volume (shares)
      turnover float Turnover
      short_sell_shares_traded int Short sell volume (shares)
      short_sell_turnover float Short sell turnover
      open_price float Open price
      close_price float Close price
      last_close_price float Previous close price
      daily_trade_avg_ratio float Daily avg trade ratio
    • HK hk_df.attrs additional attributes:

      Attribute Type Description
      next_key str Pagination key
      aggregated_short int Aggregated short position (shares)
      aggregated_short_ratio float Ratio of outstanding shares
      new_time_str str Latest data time
  • Example

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

ret, us_df, hk_df = quote_ctx.get_daily_short_volume("HK.00700")
if ret == RET_OK:
    print(hk_df)
else:
    print('error:', hk_df)
quote_ctx.close()
1
2
3
4
5
6
7
8
9
  • Output
timestamp timestamp_str  ...  last_close_price  daily_trade_avg_ratio
0  1778169600    2026-05-08  ...             477.4                  11.36
1  1778083200    2026-05-07  ...             463.0                  11.80
2  1777996800    2026-05-06  ...             472.2                  12.22
3  1777910400    2026-05-05  ...             473.0                  12.76
4  1777824000    2026-05-04  ...             467.8                  13.02
5  1777478400    2026-04-30  ...             479.2                  13.09
6  1777392000    2026-04-29  ...             473.8                  14.02
7  1777305600    2026-04-28  ...             478.6                  14.13
8  1777219200    2026-04-27  ...             493.4                  14.14
9  1776960000    2026-04-24  ...             495.2                  14.18

[10 rows x 10 columns]
1
2
3
4
5
6
7
8
9
10
11
12
13

Restrictions

  • Maximum 30 requests per 30 seconds.
  • Supports HK and US stocks and funds.