# get_industry_name_of_stock - 是否在指定的行业分类中 判定给定股票代码是否在指定的行业分类中 规范地址:https://quantx.asia/docs/qmt/builtin-python/api-reference/get-industry-name-of-stock/ 适用平台:QMT 内置 Python;运行环境:builtin-python 内容更新:2026-10-11 资料核验:2026-10-11 资料来源: - [官方来源](https://dict.thinktrader.net/VBA/check_sheet.html) --- ## 功能说明 判定给定股票代码是否在指定的行业分类中 ## 原型 ```python get_industry_name_of_stock(industryType, stockcode) ``` ## 参数 industryType:string,行业类别,有'CSRC' 和'SW'两种;stockcode:string,形式如'stockcode.market',如'600000.SH' ## 返回值 string:对应行业名,找不到则返回空string ## 示例 以下代码依据官方示例整理缩进,并将旧式 print 写法改为函数调用;账号使用占位值。 ```python def handlebar(ContextInfo): print(get_industry_name_of_stock('SW', '600000.SH')) ``` ## 官方来源 [迅投 QMT 官方函数检索表](https://dict.thinktrader.net/VBA/check_sheet.html),条目 `get_industry_name_of_stock`。本页属于 QMT 内置 Python 接口;原站函数检索表同时收录其他语言,不能按网页路径将本条目误归为 VBA。网页核对日期:2026-10-11。