## 原型

```python
ContextInfo.get_open_date('stockcode')
```

## 释义

ContextInfo.get_open_date 是 QMT 内置 Python 中用于根据代码返回对应股票的上市时间的接口。

研究：官方目录未明确；回测：官方目录未明确；模拟：官方目录未明确；实盘：官方目录未明确。

## 参数

| 参数 | 是否必填 | 官方原始定义 |
|---|---:|---|
| `'stockcode'` | 是 | 'stockcode' |

## 返回值

以实际接口返回和下方详细说明为准。

## 示例

```python
pythonresult

def init(ContextInfo):

print(ContextInfo.get_open_date('000001.SZ'))
```

## 详细说明

用法： ContextInfo.get_open_date('stockcode')

释义： 根据代码返回对应股票的上市时间

参数： stockcode：股票代码，如'000001.SZ'，缺省值 ' ' 默认为当前图代码

返回： number
