# Get Earnings Price History

get_financials_earnings_price_history(code)

  • Description

    Get earnings price history

  • Parameters

    Parameter Type Description
    code str Stock code
  • Returns

    Parameter Type Description
    ret RET_CODE API call result
    data pd.DataFrame When ret == RET_OK, returns price history data expanded by trading day
    str When ret != RET_OK, returns error description
    • Each row contains both earnings metadata and daily price data:

      Field Type Description
      fiscal_year int Fiscal year
      financial_type F10Type Report type
      period_text str Earnings period
      is_current bool Whether this is the current (latest) earnings period
      pub_trading_day int Earnings announcement trading day timestamp (seconds)
      pub_trading_day_str str Earnings announcement trading day
      pub_time int Earnings actual release timestamp (seconds, includes time)
      pub_time_str str Earnings release datetime
      pub_type EarningsPubTimeType Announcement time type
      predict_vola_ratio_newest float Latest predicted volatility ratio
      predict_vola_ratio_highest float Highest predicted volatility ratio
      predict_vola_val_newest float Latest predicted volatility amount
      predict_vola_val_highest float Highest predicted volatility amount
      option_iv_crush float Option implied volatility crush
      option_strike_date_iv_crush float Strike date option IV crush
      trading_day int Trading day timestamp (seconds)
      trading_day_str str Trading date
      close_price float Close price
      open_price float Open price
      highest_price float High price
      lowest_price float Low price
      last_close_price float Previous close price
      volume float Volume (shares)
      schedule_delta int Trading day offset from announcement date
      schedule_close_price float Close price at the given day offset
  • 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

Restrictions

  • Max 30 requests per 30 seconds.
  • Supports HK and US equities only.