QMT · 内置 Python系统函数
ContextInfo.get_open_date
根据代码返回对应股票的上市时间
用法
ContextInfo.get_open_date('stockcode')
释义
根据代码返回对应股票的上市时间
参数
stockcode:股票代码,如'000001.SZ',缺省值 ' ' 默认为当前图代码
返回值
number
示例
def init(ContextInfo):
print(ContextInfo.get_open_date('000001.SZ'))
result
19910403
官方来源
QMT 官方文档:根据代码返回对应股票的上市时间。网页核对日期:2026-10-11。