# 期權異動

get_option_event(option_market, count=None, page=None, filter_list=None, sort=None)

  • 介紹

    獲取期權異動列表,返回大單成交、掃單等期權異動記錄,支持按標的、合約屬性、成交信息、希臘值等多維度篩選和排序。

  • 參數

    參數 類型 說明
    option_market OptionMarket 期權市場類型
    count int 每頁數量
    page str 分頁標記
    filter_list list[EventFilter] 篩選條件列表
    sort EventSort 排序
  • 返回

    參數 類型 說明
    ret RET_CODE 接口調用結果
    data dict 當 ret == RET_OK,返回異動數據
    str 當 ret != RET_OK,返回錯誤描述
    • data 字典包含:

      字段 類型 說明
      event_list pandas.DataFrame 異動列表
      next_page str 下一頁標記
      all_count int 總條數
      update_timestamp float 數據更新時間戳
    • event_list DataFrame 字段:

      字段 類型 說明
      option_code str 期權合約代碼
      owner_code str 標的股票代碼
      symbol str 標的 display code(如 TSLA)
      fill_time str 成交時間
      fill_timestamp float 成交時間戳(Unix 秒)
      ticker_type str 成交方向
      price float 成交價
      volume int 成交量(張)
      turnover float 成交額
      option_type str 期權類型
      strike_price float 行權價
      strike_time str 到期日
      strike_timestamp float 到期時間戳(Unix 秒)
      dte int 距到期天數
      underlying_price float 標的價格
      otm float 價外比率(百分比)
      bid_price float 買一價
      ask_price float 賣一價
      iv float 隱含波動率(百分比)
      total_volume int 期權當日總成交量
      total_open_interest int 期權當日總持倉量
      vo_ratio float 量倉比(百分比)
      delta float Delta
      gamma float Gamma
      vega float Vega
      theta float Theta
      rho float Rho
      sentiment str 市場情緒
      order_type_list list 訂單類型列表
      strategy_type str 策略類型
      earnings_time str 業績時間
      earnings_pub_type int 業績發佈類型
      corporate_action_list list 企業行動列表
      industry_plate_list list 行業板塊列表
      concept_plate_list list 概念板塊列表
  • Example

from futu import *

quote_ctx = OpenQuoteContext(host='127.0.0.1', port=11111)

ret, data = quote_ctx.get_option_event(OptionMarket.US_SECURITY, count=5)
if ret == RET_OK:
    print(data['event_list'])
    print('all_count:', data['all_count'])
else:
    print('error:', data)

quote_ctx.close()
1
2
3
4
5
6
7
8
9
10
11
12
  • Output
           option_code owner_code symbol            fill_time  fill_timestamp ticker_type     price  volume   turnover option_type  strike_price strike_time  strike_timestamp  dte  underlying_price    otm  bid_price  ask_price      iv  total_volume  total_open_interest  vo_ratio     delta     gamma      vega     theta       rho sentiment  order_type_list strategy_type earnings_time earnings_pub_type                                                                corporate_action_list industry_plate_list concept_plate_list
0   US.TLT260618C86000     US.TLT    TLT  2026-06-12 16:14:00    1.781295e+09        SELL  0.280000   10000   280000.0        CALL          86.0  2026-06-18      1.781759e+09    3             85.77  0.268       0.28       0.30   8.240         70108                88849   0.78906  0.424382  0.432194  0.043077 -0.034441  0.005940   BEARISH  [SWEEP, NORMAL]    SINGLE_LEG           N/A               N/A                                                                          N/A                 N/A                N/A
1   US.TLT260618C86000     US.TLT    TLT  2026-06-12 16:13:18    1.781295e+09        SELL  0.280000    7821   218988.0        CALL          86.0  2026-06-18      1.781759e+09    3             85.77  0.268       0.28       0.30   8.240         60104                88849   0.67647  0.424382  0.432194  0.043077 -0.034441  0.005940   BEARISH  [SWEEP, NORMAL]    SINGLE_LEG           N/A               N/A                                                                          N/A                 N/A                N/A
2  US.IWM260618P285000     US.IWM    IWM  2026-06-12 16:07:53    1.781295e+09        SELL  1.320000    3002   396264.0         PUT         285.0  2026-06-18      1.781759e+09    3            292.96  2.717       1.32       1.35  28.323         57418                26731   2.14799 -0.214110  0.027402  0.109475 -0.256980 -0.009801   BULLISH  [SWEEP, NORMAL]    SINGLE_LEG           N/A               N/A  [{'action_type': 7, 'action_time': '2026-06-15', 'action_timestamp': ...}]                 N/A                N/A
3  US.SPY260717P706000     US.SPY    SPY  2026-06-12 16:04:46    1.781295e+09         BUY  4.333523    3872  1677940.0         PUT         706.0  2026-07-17      1.784264e+09   32            741.77  4.822       4.29       4.35  19.000         22269                 8169   2.72603 -0.177726  0.005982  0.596630 -0.150480 -0.113947   BEARISH  [SWEEP, NORMAL]    SINGLE_LEG           N/A               N/A                                                                          N/A                 N/A      [US.LIST2153]
4  US.SPY260717P704000     US.SPY    SPY  2026-06-12 16:04:26    1.781295e+09        SELL  4.060235    6767  2747561.0         PUT         704.0  2026-07-17      1.784264e+09   32            741.77  5.091       4.05       4.10  19.214         17712                 7842   2.25860 -0.167963  0.005705  0.575554 -0.147087 -0.107775   BULLISH         [NORMAL]    SINGLE_LEG           N/A               N/A                                                                          N/A                 N/A      [US.LIST2153]
all_count: 164620
1
2
3
4
5
6
7

接口限制

  • 30 秒內最多請求 60 次期權異動接口(支持分頁的接口,僅首次調用納入統計)