# オプション原資産概要

get_option_underlying_overview(code_list, index_option_type=IndexOptionType.NORMAL)

  • 説明

    オプション原資産の概要データを一括取得します。出来高、建玉、インプライドボラティリティ(IV)および複数期間のヒストリカルボラティリティ(HV)等のコア指標の最新スナップショットを含みます。

  • パラメータ

    パラメータ 説明
    code_list list[str] 原資産銘柄コードリスト
    index_option_type IndexOptionType 指数オプションタイプ
  • 戻り値

    パラメータ 説明
    ret RET_CODE インターフェース呼び出し結果
    data pandas.DataFrame ret == RET_OK の場合、原資産概要データを返す
    str ret != RET_OK の場合、エラー説明を返す
    • 戻り DataFrame フィールド:

      フィールド 説明
      code str 銘柄コード
      name str 原資産名称
      call_volume int コールオプション出来高
      put_volume int プットオプション出来高
      call_open_interest int コールオプション建玉(T-1 遅延)
      put_open_interest int プットオプション建玉(T-1 遅延)
      iv float インプライドボラティリティ(パーセント)
      iv_rank float IV ランクパーセンタイル(パーセント)
      iv_percentile float IV パーセンタイル(パーセント)
      pre_iv float 前取引日 IV(パーセント)
      hv_30d float 30日ヒストリカルボラティリティ(パーセント)
      hv_30d_percentile float 30日 HV パーセンタイル
      hv_60d float 60日ヒストリカルボラティリティ(パーセント)
      hv_60d_percentile float 60日 HV パーセンタイル
      hv_90d float 90日ヒストリカルボラティリティ(パーセント)
      hv_90d_percentile float 90日 HV パーセンタイル
      hv_120d float 120日ヒストリカルボラティリティ(パーセント)
      hv_120d_percentile float 120日 HV パーセンタイル
      hv_365d float 365日ヒストリカルボラティリティ(パーセント)
      hv_365d_percentile float 365日 HV パーセンタイル
  • Example

from moomoo import *

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

ret, data = quote_ctx.get_option_underlying_overview(['US.AAPL', 'US.TSLA', 'US.NVDA'])
if ret == RET_OK:
    print(data)
else:
    print('error:', data)

quote_ctx.close()
1
2
3
4
5
6
7
8
9
10
11
  • Output
      code  name  call_volume  put_volume  call_open_interest  put_open_interest      iv  iv_rank  iv_percentile  pre_iv  hv_30d  hv_30d_percentile  hv_60d  hv_60d_percentile  hv_90d  hv_90d_percentile  hv_120d  hv_120d_percentile  hv_365d  hv_365d_percentile
0  US.AAPL  Apple       782941      490299             3165108            2237950  25.126   37.702         19.841  25.617  23.324             59.126  24.641             65.476  23.019             46.825   23.582              47.619   22.619               8.333
1  US.TSLA  Tesla      2197764     1425740             4178685            2909774  55.053   39.265         64.285  55.401  49.359             68.254  46.536             58.730  44.990             46.031   41.688              29.761   44.500               1.190
2  US.NVDA  NVIDIA     1980405     1176926             9096278            7648683  41.975   27.062         42.460  45.135  45.921             96.825  42.646             99.206  39.980             92.460   38.971              81.746   34.989              17.063
1
2
3
4

インターフェース制限

  • 30秒以内に最大60回のオプション原資産概要インターフェースリクエスト