跳到正文
QMT

ContextInfo.get_option_detail_data

获取指定期权品种的详细信息

原型

ContextInfo.get_option_detail_data(optioncode)

释义

获取指定期权品种的详细信息

参数

字段名 数据类型 解释
optioncode string 期权代码,如'10001506.SHO',当填写空字符串时候默认为当前主图的期权品种

返回值dict,字段如下:

字段 类型 说明
ExchangeID str 期权市场代码
InstrumentID str 期权代码
ProductID str 期权标的的产品ID
OpenDate int 发行日期
ExpireDate int 到期日
PreClose float 前收价格
SettlementPrice float 前结算价格
UpStopPrice float 当日涨停价
DownStopPrice float 当日跌停价
LongMarginRatio float 多头保证金率
ShortMarginRatio float 空头保证金率
PriceTick float 最小变价单位
VolumeMultiple int 合约乘数
MaxMarketOrderVolume int 涨跌停价最大下单量
MinMarketOrderVolume int 涨跌停价最小下单量
MaxLimitOrderVolume int 限价单最大下单量
MinLimitOrderVolume int 限价单最小下单量
OptUnit int 期权合约单位
MarginUnit float 期权单位保证金
OptUndlCode str 期权标的证券代码
OptUndlMarket str 期权标的证券市场
OptExercisePrice float 期权行权价
NeeqExeType str 全国股转转让类型
OptUndlRiskFreeRate float 期权标的无风险利率
OptUndlHistoryRate float 期权标的历史波动率
EndDelivDate int 期权行权终止日
optType str 期权类型

示例

示例

#encoding:gbk
def init(ContextInfo):
  pass

def after_init(ContextInfo):
  print(ContextInfo.get_option_detail_data('10002235.SHO'))

返回值

{'ExchangeID': 'SHO', 'InstrumentID': '10002235', 'ProductID': '50ETF(510050)', 'OpenDate': 20200123, 'ExpireDate': 20200923, 'PreClose': 0.3199, 'SettlementPrice': 0.322, 'UpStopPrice': 0.6542, 'DownStopPrice': 0.0001, 'LongMarginRatio': 12.0, 'ShortMarginRatio': 7.0, 'PriceTick': 0.0001, 'VolumeMultiple': 10000, 'MaxMarketOrderVolume': 10, 'MinMarketOrderVolume': 1, 'MaxLimitOrderVolume': 50, 'MinLimitOrderVolume': 1, 'OptUnit': 1.7976931348623157e+308, 'MarginUnit': 7206.4, 'OptUndlCode': '510050', 'OptUndlMarket': 'SH', 'OptExercisePrice': 3.0, 'NeeqExeType': 0, 'OptUndlRiskFreeRate': 0.03234, 'OptUndlHistoryRate': 0.283734422522, 'EndDelivDate': 20200923, 'optType': 'CALL'}

官方来源

QMT 官方文档:获取指定期权品种的详细信息。网页核对日期:2026-10-11。

本页目录