本分类共收录 **15** 个正式签名接口。常用函数优先排列；点击函数名进入完整参数、返回值、示例、限制条件和来源页面。

## 函数目录

| 优先级 | 函数 | 主要用途 | 官方明确支持环境 |
|---|---|---|---|
| 常用 | [`ContextInfo.get_stock_list_in_sector`](docs/qmt/builtin-python/api-reference/contextinfo-get-stock-list-in-sector/index.html) | 获取板块成份股 | 以详情页为准 |
|  | [`add_stock_to_sector`](docs/qmt/builtin-python/api-reference/add-stock-to-sector/index.html) | 添加板块成分股 | 以详情页为准 |
|  | [`ContextInfo.get_divid_factors`](docs/qmt/builtin-python/api-reference/contextinfo-get-divid-factors/index.html) | 获取除权除息日和复权因子 | 以详情页为准 |
|  | [`ContextInfo.get_his_st_data`](docs/qmt/builtin-python/api-reference/contextinfo-get-his-st-data/index.html) | 获取某只股票ST的历史 | 以详情页为准 |
|  | [`ContextInfo.get_instrument_detail`](docs/qmt/builtin-python/api-reference/contextinfo-get-instrument-detail/index.html) | 根据代码获取合约详细信息 | 以详情页为准 |
|  | [`ContextInfo.get_open_date`](docs/qmt/builtin-python/api-reference/contextinfo-get-open-date/index.html) | 根据代码返回对应股票的上市时间 | 以详情页为准 |
|  | [`ContextInfo.get_stock_name`](docs/qmt/builtin-python/api-reference/contextinfo-get-stock-name/index.html) | 根据代码获取名称 | 以详情页为准 |
|  | [`ContextInfo.get_trading_dates`](docs/qmt/builtin-python/api-reference/contextinfo-get-trading-dates/index.html) | 获取交易日信息 | 以详情页为准 |
|  | [`ContextInfo.get_weight_in_index`](docs/qmt/builtin-python/api-reference/contextinfo-get-weight-in-index/index.html) | 获取某只股票在某指数中的绝对权重 | 以详情页为准 |
|  | [`create_sector`](docs/qmt/builtin-python/api-reference/create-sector/index.html) | 创建板块 | 以详情页为准 |
|  | [`create_sector_folder`](docs/qmt/builtin-python/api-reference/create-sector-folder/index.html) | 创建板块目录节点 | 以详情页为准 |
|  | [`get_sector_list`](docs/qmt/builtin-python/api-reference/get-sector-list/index.html) | 获取板块目录信息 | 以详情页为准 |
|  | [`get_st_status`](docs/qmt/builtin-python/api-reference/get-st-status/index.html) | 获取历史st状态 | 以详情页为准 |
|  | [`remove_stock_from_sector`](docs/qmt/builtin-python/api-reference/remove-stock-from-sector/index.html) | 移除板块成分股 | 以详情页为准 |
|  | [`reset_sector_stock_list`](docs/qmt/builtin-python/api-reference/reset-sector-stock-list/index.html) | 设置板块成分股 | 以详情页为准 |

## 使用原则

- 先选择与当前任务最匹配的常用接口。
- 标记为“兼容/不推荐”的接口仅用于维护旧策略，新代码优先采用详情页指出的替代接口。
- 没有明确标注运行环境时，不推断可用于回测或实盘，应在目标客户端预检。
