# 機関投資家保有株式の取得

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

  • 説明

    銘柄の機関投資家数および保有株式数の履歴を取得します。ページングに対応しています。

  • パラメータ

    パラメータ 説明
    code str 銘柄コード
    next_key str ページングキー
    num int 1ページあたりの件数
  • 戻り値

    パラメータ 説明
    ret RET_CODE API 呼び出し結果
    data pd.DataFrame ret == RET_OK の場合、機関投資家保有 DataFrame を返す
    str ret != RET_OK の場合、エラーの説明を返す
    • DataFrame フィールドの説明:

      フィールド 説明
      period_text str 報告期間
      institution_quantity int 機関投資家数
      institution_quantity_change int 機関投資家数の変化
      holder_quantity int 機関保有株式総数
      holder_quantity_change int 保有株式数の変化
      holder_pct float 保有比率
      holder_pct_change float 保有比率の変化
      update_time_str str データ更新時刻
      next_key str ページングキー
  • Example

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

ret, data = quote_ctx.get_shareholders_institutional("HK.00700")
if ret == RET_OK:
    print(data[['period_text', 'institution_quantity', 'holder_quantity', 'holder_pct']].to_string(index=False))
    print('next_key:', data.attrs.get('next_key', '-1'))
else:
    print('error:', data)
quote_ctx.close()
1
2
3
4
5
6
7
8
9
10
  • Output
period_text  institution_quantity  holder_quantity  holder_pct
    2026/Q1                   863       4192178205      46.474
    2025/Q4                   873       4195284653      46.444
    2025/Q3                   854       4219387239      46.614
    2025/Q2                   839       4254708217      46.881
    2025/Q1                   809       4236696253      46.491
    2024/Q4                   808       4331865949      47.431
    2024/Q3                   803       4404605110      47.919
    2024/Q2                   846       4438538978      47.926
    2024/Q1                   824       4484844061      48.055
    2023/Q4                   857       4472729401      47.717
next_key: -1
1
2
3
4
5
6
7
8
9
10
11
12

API 制限

  • 30 秒間に最大 30 リクエスト。
  • 香港株、米国株の普通株およびファンドに対応。
  • ページングに対応;デフォルト 1 ページあたり 10 件;ページングキーは文字列型。