# 获取财报日前后股价历史

get_financials_earnings_price_history(code)

  • 介绍

    获取财报日前后股价历史

  • 参数

    参数 类型 说明
    code str 股票代码
  • 返回

    参数 类型 说明
    ret RET_CODE 接口调用结果
    data pd.DataFrame 当 ret == RET_OK,返回各财报期数据(按期×偏移交易日展开)
    str 当 ret != RET_OK,返回错误描述
    • 返回数据按财报期展开,每行包含财报元信息、发布日行情及相对偏移收盘价:

      字段 类型 说明
      fiscal_year int 财务年度
      financial_type F10Type 财报类型
      period_text str 财报周期
      is_current bool 是否为当前(最新)财报期
      pub_trading_day int 财报发布对应交易日时间戳(秒)
      pub_trading_day_str str 财报发布交易日
      pub_time int 财报实际发布时间戳(秒,含时分秒)
      pub_time_str str 财报发布时间
      pub_type EarningsPubTimeType 财报发布时间类型
      predict_vola_ratio_newest float 最新预期波动比例
      predict_vola_ratio_highest float 最高预期波动比例
      predict_vola_val_newest float 最新预期波动金额
      predict_vola_val_highest float 最高预期波动金额
      option_iv_crush float 期权隐含波动率压缩值
      option_strike_date_iv_crush float 行权日期权隐含波动率压缩值
      trading_day int 财报发布日当天交易日时间戳(秒)
      trading_day_str str 财报发布日当天交易日
      close_price float 收盘价
      open_price float 开盘价
      highest_price float 最高价
      lowest_price float 最低价
      last_close_price float 昨收价
      volume float 成交量(股)
      schedule_delta int 相对财报发布日的交易日偏移量
      schedule_close_price float 该偏移交易日的收盘价
  • Example

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

ret, data = quote_ctx.get_financials_earnings_price_history("HK.00700")
if ret == RET_OK:
    print(data)
    print(data['period_text'][0])
else:
    print('error:', data)
quote_ctx.close()
1
2
3
4
5
6
7
8
9
10
  • Output
fiscal_year  financial_type  ... schedule_delta  schedule_close_price
0           2026               1  ...            -15            504.000000
1           2026               1  ...            -14            495.200000
2           2026               1  ...            -13            493.400000
3           2026               1  ...            -12            478.600000
4           2026               1  ...            -11            473.800000
..           ...             ...  ...            ...                   ...
579         2021               2  ...             10            445.420633
580         2021               2  ...             11            438.045790
581         2021               2  ...             12            453.717332
582         2021               2  ...             13            463.396813
583         2021               2  ...             14            471.693512

[584 rows x 25 columns]
2026/Q1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

接口限制

  • 每 30 秒内最多请求 30 次。
  • 仅支持港股、美股正股。