# 期權標的總覽

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 futu 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 次期權標的總覽接口