# 自社株買い情報の取得

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

  • 説明

    銘柄の自社株買い履歴を取得します(香港株・A株対応、ページング対応)

  • パラメータ

    パラメータ 説明
    code str 銘柄コード
    next_key str ページングキー
    num int ページサイズ
  • 戻り値

    パラメータ 説明
    ret RET_CODE API呼び出し結果
    data dict ret == RET_OK の場合、自社株買いデータの辞書を返します
    str ret != RET_OK の場合、エラーの説明を返します
    • 返される辞書には以下のフィールドが含まれます:

      フィールド 説明
      next_key str ページングキー
      hk_buy_back_list pd.DataFrame 香港株自社株買いリスト
      a_buy_back_list pd.DataFrame A株自社株買いリスト
    • hk_buy_back_list フィールド(香港株自社株買いエントリ):

      フィールド 説明
      publ_date int 公告日タイムスタンプ
      publ_date_str str 公告日
      end_date int 買付終了日タイムスタンプ
      end_date_str str 買い付け終了日
      buy_back_money float 買付金額
      buy_back_sum int 買付株数
      percentage float 発行済株式数に対する割合
      high_price float 最高買付価格
      low_price float 最低買付価格
      cumulative_sum int 今回累計買付株数
      cumulative_percentage float 今回累計買付割合
      share_type str 株式種別
    • a_buy_back_list フィールド(A株自社株買いエントリ):

      フィールド 説明
      change_reg_date int 工商変更登記日タイムスタンプ
      change_reg_date_str str 工商変更登記日
      change_date int 株式変更日タイムスタンプ
      change_date_str str 株式変更日
      event_proce_desc str イベント進捗説明
      advance_date int 提案公告日タイムスタンプ
      advance_date_str str 提案公告日
      meet_pass_date int 株主総会承認日タイムスタンプ
      meet_pass_date_str str 株主総会承認日
      start_date int 買付開始日タイムスタンプ
      start_date_str str 買付開始日
      end_date int 買付終了日タイムスタンプ
      end_date_str str 買付終了日
      pay_date int 支払日タイムスタンプ
      pay_date_str str 支払日
      seller str 売却者
      buy_back_mode str 買付方法
      share_type str 株式種別
      buy_back_sum int 買付株数
      buy_back_money float 買付金額
      percentage float 発行済株式数に対する割合
      value_floor float 計画買付金額下限
      value_ceiling float 計画買付金額上限
      price_floor float 買付価格下限
      price_ceiling float 買付価格上限
      volume_floor float 計画買付株数下限
      volume_ceiling float 計画買付株数上限
  • Example

from moomoo import *
import pandas as pd
quote_ctx = OpenQuoteContext(host='127.0.0.1', port=11111)
ret, data = quote_ctx.get_corporate_actions_buybacks("HK.00700", num=3)
if ret == RET_OK:
    df = pd.DataFrame(data.get('hk_buy_back_list', []))
    print(df.to_string(index=False))
else:
    print('error:', data)
quote_ctx.close()
1
2
3
4
5
6
7
8
9
10
  • Output
publ_date publ_date_str   end_date end_date_str  buy_back_money  buy_back_sum  percentage  high_price  low_price  cumulative_sum  cumulative_percentage      share_type
1775664000    2026-04-09 1775664000   2026-04-09    1000880717.6       1964000    0.021373       514.5      503.0       119812000                1.30386 Ordinary shares
1775577600    2026-04-08 1775577600   2026-04-08    1000761103.7       1979000    0.021537       510.0      501.0       117848000                1.28249 Ordinary shares
1775059200    2026-04-02 1775059200   2026-04-02     300715258.5        615000    0.006693       496.0      485.2       115869000                1.26095 Ordinary shares
1
2
3
4

API制限

  • 30秒以内に最大30回リクエスト可能。
  • 香港株、A株の正株およびファンドに対応。