# 末日期权标的筛选

get_option_zero_dte_screener(market, sort_type=None, is_asc=None, count=None, page=None, filter_list=None)

  • 介绍

    获取末日期权标的筛选列表,返回当日到期(0DTE)期权对应的标的股票信息,包含波动率、期权成交量、持仓量及期权链信息等数据。

  • 参数

    参数 类型 说明
    market OptionMarket 期权市场类型
    sort_type ZeroDteSortType 排序类型
    is_asc bool 是否升序
    count int 每页数量
    page str 分页游标
    filter_list list[ZeroDteFilter] 筛选条件列表
  • 返回

    参数 类型 说明
    ret RET_CODE 接口调用结果
    data dict 当 ret == RET_OK,返回字典,包含 item_list(DataFrame)、next_page(str/None)、update_timestamp(float)
    str 当 ret != RET_OK,返回错误描述
    • 返回 DataFrame 字段:

      字段 类型 说明
      owner str 标的股票代码
      name str 标的名称
      price float 标的当前价格
      change_ratio float 涨跌幅(百分比)
      market_cap float 市值
      iv float 隐含波动率(百分比)
      iv_rank float IV 排名(百分比)
      iv_percentile float IV 百分位(百分比)
      hv float 历史波动率(百分比)
      volume int 期权成交量
      open_interest int 期权持仓量
      last_trading_time int 最后交易时间戳(Unix 秒)
      earnings_timestamp int 财报日期时间戳(秒)
      earnings_time str 财报时间字符串
      earnings_pub_type str 财报发布类型(BEFORE/AFTER)
      chain_info dict 期权链信息
  • Example

from futu import *

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

ret, data = quote_ctx.get_option_zero_dte_screener(
    market=OptionMarket.US_SECURITY,
    sort_type=ZeroDteSortType.VOLUME,
    is_asc=False,
    count=5
)
if ret == RET_OK:
    print(data['item_list'])
else:
    print('error:', data)

quote_ctx.close()
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
  • Output
     owner                        name   price  change_ratio    market_cap      iv  iv_rank  iv_percentile      hv    volume  open_interest  last_trading_time earnings_timestamp earnings_time earnings_pub_type                                                                                                                chain_info
0   US.SPY               标普500ETF-SPDR  741.75         0.540  7.830717e+11  17.675   27.143         61.111  15.031  14228830       19909256         1781554500                N/A           N/A               N/A    {'strike_date_timestamp': 1781499600, 'product_code': 'SPY', 'multiplier': 100.0, ...}
1   US.QQQ  纳指100ETF-Invesco QQQ Trust  721.34         0.588  4.805349e+11  27.652   62.918         91.269  26.196   8239190       12964422         1781554500                N/A           N/A               N/A    {'strike_date_timestamp': 1781499600, 'product_code': 'QQQ', 'multiplier': 100.0, ...}
2  US.TSLA                         特斯拉  406.43         1.823  1.526439e+12  55.053   39.265         64.285  49.359   3623504        7088459         1781553600                N/A           N/A               N/A  {'strike_date_timestamp': 1781499600, 'product_code': 'TSLA', 'multiplier': 100.0, ...}
3  US.NVDA                         英伟达  205.19         0.156  4.965598e+12  41.975   27.062         42.460  45.921   3157331       16744961         1781553600                N/A           N/A               N/A  {'strike_date_timestamp': 1781499600, 'product_code': 'NVDA', 'multiplier': 100.0, ...}
4   US.IWM           罗素2000ETF-iShares  292.95         0.874  8.143528e+10  24.857   33.930         64.285  24.802   2840729       11791964         1781554500                N/A           N/A               N/A    {'strike_date_timestamp': 1781499600, 'product_code': 'IWM', 'multiplier': 100.0, ...}
1
2
3
4
5
6

接口限制

  • 30 秒内最多请求 60 次末日期权标的筛选接口(支持分页的接口,仅首次调用纳入统计)