# オプション異常取引

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 原資産表示コード(例: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 買い1価格
      ask_price float 売り1価格
      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 moomoo 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回のオプション異常取引インターフェースリクエスト(ページング対応のインターフェースは初回呼び出しのみカウント)