# オプション原資産履歴ボラティリティ

get_option_underlying_his_volatility(code, index_option_type=IndexOptionType.NORMAL, begin_time=None, end_time=None, page_req_key=None)

  • 説明

    オプション原資産のヒストリカルボラティリティデータを取得します。取引日単位で IV と HV の時系列および原資産終値を返します。ページネーション対応。

  • パラメータ

    パラメータ 説明
    code str 原資産銘柄コード
    index_option_type IndexOptionType 指数オプションタイプ
    begin_time str 開始日付、フォーマット 'YYYY-MM-DD'
    end_time str 終了日付、フォーマット 'YYYY-MM-DD'
    page_req_key bytes ページングリクエストキー

    時間範囲について

    • begin_timeend_time の間隔は最大 364 日
    • 両方未指定:end_time = 当日、begin_time = 当日から 364 日前
    • begin_time のみ指定:end_time = begin_time から 364 日後
    • end_time のみ指定:begin_time = end_time から 364 日前
  • 戻り値

    パラメータ 説明
    ret RET_CODE インターフェース呼び出し結果
    data pandas.DataFrame ret == RET_OK の場合、ボラティリティデータを返す
    str ret != RET_OK の場合、エラー説明を返す
    page_req_key bytes 次ページキー、None はデータなし
    • 戻り DataFrame フィールド:

      フィールド 説明
      code str 銘柄コード
      name str 銘柄名称
      time str 取引日時間文字列
      timestamp float 取引日タイムスタンプ(Unix 秒)
      iv float インプライドボラティリティ(パーセント)
      hv float ヒストリカルボラティリティ(パーセント)
      underlying_price float 原資産終値(当日はマーク価格)
  • Example

from moomoo import *

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

ret, data, page_req_key = quote_ctx.get_option_underlying_his_volatility(
    'US.AAPL',
    begin_time='2026-06-01',
    end_time='2026-06-15'
)
if ret == RET_OK:
    print(data)
else:
    print('error:', data)

quote_ctx.close()
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
  • Output
      code  name        time     timestamp      iv      hv  underlying_price
0  US.AAPL  Apple  2026-06-12  1.781237e+09  25.126  23.324            291.13
1  US.AAPL  Apple  2026-06-11  1.781150e+09  25.617  23.270            295.63
2  US.AAPL  Apple  2026-06-10  1.781064e+09  27.384  22.892            291.58
3  US.AAPL  Apple  2026-06-09  1.780978e+09  27.237  22.854            290.55
4  US.AAPL  Apple  2026-06-08  1.780891e+09  26.368  19.028            301.54
5  US.AAPL  Apple  2026-06-05  1.780632e+09  26.995  18.024            307.34
6  US.AAPL  Apple  2026-06-04  1.780546e+09  25.249  17.366            311.23
7  US.AAPL  Apple  2026-06-03  1.780459e+09  26.801  18.927            310.26
8  US.AAPL  Apple  2026-06-02  1.780373e+09  26.258  18.415            315.20
9  US.AAPL  Apple  2026-06-01  1.780286e+09  25.864  16.841            306.31
1
2
3
4
5
6
7
8
9
10
11

インターフェース制限

  • 30秒以内に最大60回のオプション原資産履歴ボラティリティインターフェースリクエスト(ページング対応のインターフェースは初回呼び出しのみカウント)