# 獲取財報日前後股價歷史

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 次。
  • 僅支援港股、美股正股。