# 期权标的总览

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 次期权标的总览接口