# インサイダー取引の取得

get_insider_trade_list(code, holder_id=None, num=None, next_key=None)

  • 説明

    米国株のインサイダー(役員/取締役/主要株主)の取引記録リストを取得します。保有者でフィルタリングしたり、ページネーションで続きを取得することができます

  • パラメータ

    パラメータ 説明
    code str 銘柄コード
    holder_id int 保有者 ID
    num int 1ページの件数
    next_key str ページネーションキー
  • 戻り値

    パラメータ 説明
    ret RET_CODE API 呼び出し結果
    data pd.DataFrame ret == RET_OK の場合、インサイダー取引の DataFrame を返す
    str ret != RET_OK の場合、エラーの説明を返す
    • DataFrame フィールド説明:

      フィールド 説明
      trade_shares int 取引株数
      min_trade_date int 最小取引日時タイムスタンプ
      min_trade_date_str str 最小取引日文字列
      max_trade_date int 最大取引日時タイムスタンプ
      max_trade_date_str str 最大取引日文字列
      min_price float 最小取引価格
      max_price float 最大取引価格
      security_holder_quantity int 取引後の保有株数
      is_proposed_sale_of_securities bool 売却意向
      holder_id int 株主 ID
      name str 株主名
      title str 株主の役職
      security_description str 証券種別説明
      transaction_type str 取引種別
      source_group_name str データソース
      all_count int 総件数
      next_key str ページネーションキー
  • Example

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

ret, data = quote_ctx.get_insider_trade_list("US.AAPL")
if ret == RET_OK:
    print(data[['holder_id', 'name', 'title', 'transaction_type', 'trade_shares']].to_string(index=False))
else:
    print('error:', data)
quote_ctx.close()
1
2
3
4
5
6
7
8
9
  • Output
holder_id             name                                 title                       transaction_type  trade_shares
    234085  Arthur Levinson Independent Non-Executive Chairperson                Open Market Disposition       -250000
    234085  Arthur Levinson Independent Non-Executive Chairperson                      Other Disposition         -5000
  34123508 Katherine  Adams                 Senior Vice President              Intent to Sell (Form 144)        -43000
1892533533     Kevan Parekh               Chief Financial Officer                  Automatic Disposition         -1534
1892533533     Kevan Parekh               Chief Financial Officer Derivative Exercise and Retained Stock          6135
1892533533     Kevan Parekh               Chief Financial Officer           Derivative Exercise and Sale         -4793
1976351584      Ben Borders          Principal Accounting Officer Derivative Exercise and Retained Stock           825
1976351584      Ben Borders          Principal Accounting Officer           Derivative Exercise and Sale          -892
    169600     Timothy Cook               Chief Executive Officer              Intent to Sell (Form 144)        -64949
 531640091  Deirdre O’Brien       Senior Vice President of Retail              Intent to Sell (Form 144)        -30002
1
2
3
4
5
6
7
8
9
10
11

API 制限

  • 30 秒以内に最大 30 回までリクエスト可能。
  • 米国株式・ファンドのみ有効。
  • ページネーション対応;デフォルト 10 件/ページ、最大 50 件;ページネーションキーは文字列型。
  • holderId は GetInsiderHolderList(3241)または本プロトコル(3242)の返り値から取得可能。