# 獲取內部人交易

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

  • 介紹

    獲取美股股票內部人(高管/董事/大股東)的交易記錄列表,支援按持有人過濾和分頁續拉

  • 參數

    參數 類型 說明
    code str 股票代碼
    holder_id int 持有人 ID
    num int 每頁數量
    next_key str 分頁標識
  • 返回

    參數 類型 說明
    ret RET_CODE 接口調用結果
    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 futu 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

接口限制

  • 每 30 秒內最多請求 30 次。
  • 僅美股正股及基金有意義。
  • 支援分頁,預設每頁 10 條,最多 50 條;分頁標識為字符串類型。
  • holderId 可取自 GetInsiderHolderList(3241)或本協議(3242)的返回值。