# 決算日前後の株価履歴を取得

get_financials_earnings_price_history(code)

  • 説明

    決算日前後の株価履歴を取得

  • パラメータ

    パラメータ 説明
    code str 銘柄コード
  • 戻り値

    パラメータ 説明
    ret RET_CODE API呼び出し結果
    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 オプションIVクラッシュ
      option_strike_date_iv_crush float 行使日オプションIVクラッシュ
      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 moomoo 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リクエスト。
  • 香港株・米国株のみ対応。