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

## 函数目录

| 优先级 | 函数 | 主要用途 | 官方明确支持环境 |
|---|---|---|---|
|  | [`buy_close_tdayfirst`](docs/qmt/builtin-python/api-reference/buy-close-tdayfirst/index.html) | 期货买入平仓（平今优先） | 以详情页为准 |
|  | [`buy_close_ydayfirst`](docs/qmt/builtin-python/api-reference/buy-close-ydayfirst/index.html) | 期货买入平仓（平昨优先） | 以详情页为准 |
|  | [`buy_open`](docs/qmt/builtin-python/api-reference/buy-open/index.html) | 期货买入开仓 | 以详情页为准 |
|  | [`ContextInfo.bsm_iv`](docs/qmt/builtin-python/api-reference/contextinfo-bsm-iv/index.html) | 基于BS模型计算欧式期权隐含波动率 | 以详情页为准 |
|  | [`ContextInfo.bsm_price`](docs/qmt/builtin-python/api-reference/contextinfo-bsm-price/index.html) | 基于BS模型计算欧式期权理论价格 | 以详情页为准 |
|  | [`ContextInfo.get_contract_expire_date`](docs/qmt/builtin-python/api-reference/contextinfo-get-contract-expire-date/index.html) | 获取期货合约到期日 | 以详情页为准 |
|  | [`ContextInfo.get_contract_multiplier`](docs/qmt/builtin-python/api-reference/contextinfo-get-contract-multiplier/index.html) | 获取合约乘数 | 以详情页为准 |
|  | [`ContextInfo.get_his_contract_list`](docs/qmt/builtin-python/api-reference/contextinfo-get-his-contract-list/index.html) | 获取市场已退市合约 | 以详情页为准 |
|  | [`ContextInfo.get_main_contract`](docs/qmt/builtin-python/api-reference/contextinfo-get-main-contract/index.html) | 获取期货主力合约 | 实盘 |
|  | [`ContextInfo.get_option_detail_data`](docs/qmt/builtin-python/api-reference/contextinfo-get-option-detail-data/index.html) | 获取指定期权品种的详细信息 | 以详情页为准 |
|  | [`ContextInfo.get_option_list`](docs/qmt/builtin-python/api-reference/contextinfo-get-option-list/index.html) | 获取指定期权列表 | 以详情页为准 |
|  | [`ContextInfo.get_option_undl_data`](docs/qmt/builtin-python/api-reference/contextinfo-get-option-undl-data/index.html) | 获取指定期权标的对应的期权品种列表 | 以详情页为准 |
|  | [`credit_account_callback`](docs/qmt/builtin-python/api-reference/credit-account-callback/index.html) | 查询信用账户明细回调 | 以详情页为准 |
|  | [`credit_opvolume_callback`](docs/qmt/builtin-python/api-reference/credit-opvolume-callback/index.html) | 查询两融最大可下单量的回调 | 以详情页为准 |
|  | [`get_assure_contract`](docs/qmt/builtin-python/api-reference/get-assure-contract/index.html) | 获取两融担保标的明细 | 以详情页为准 |
|  | [`get_closed_compacts`](docs/qmt/builtin-python/api-reference/get-closed-compacts/index.html) | 获取已了结负债合约明细 | 实盘 |
|  | [`get_comb_option`](docs/qmt/builtin-python/api-reference/get-comb-option/index.html) | 取期权组合持仓 | 以详情页为准 |
|  | [`get_enable_short_contract`](docs/qmt/builtin-python/api-reference/get-enable-short-contract/index.html) | 获取可融券明细 | 以详情页为准 |
|  | [`get_etf_info`](docs/qmt/builtin-python/api-reference/get-etf-info/index.html) | 根据ETF基金代码获取ETF申赎清单及对应成分股数据 | 以详情页为准 |
|  | [`get_etf_iopv`](docs/qmt/builtin-python/api-reference/get-etf-iopv/index.html) | 根据ETF基金代码获取ETF的基金份额参考净值 | 以详情页为准 |
|  | [`get_hkt_exchange_rate`](docs/qmt/builtin-python/api-reference/get-hkt-exchange-rate/index.html) | 获取沪深港通汇率数据 | 以详情页为准 |
|  | [`get_ipo_data`](docs/qmt/builtin-python/api-reference/get-ipo-data/index.html) | 获取当日新股新债信息 | 以详情页为准 |
|  | [`get_new_purchase_limit`](docs/qmt/builtin-python/api-reference/get-new-purchase-limit/index.html) | 获取账户新股申购额度 | 以详情页为准 |
|  | [`get_option_subject_position`](docs/qmt/builtin-python/api-reference/get-option-subject-position/index.html) | 取期权标的持仓 | 以详情页为准 |
|  | [`get_unclosed_compacts`](docs/qmt/builtin-python/api-reference/get-unclosed-compacts/index.html) | 获取未了结负债合约明细 | 以详情页为准 |
|  | [`query_credit_account`](docs/qmt/builtin-python/api-reference/query-credit-account/index.html) | 查询信用账户明细 | 以详情页为准 |
|  | [`query_credit_opvolume`](docs/qmt/builtin-python/api-reference/query-credit-opvolume/index.html) | 查询两融最大可下单量 | 以详情页为准 |
|  | [`sell_close_tdayfirst`](docs/qmt/builtin-python/api-reference/sell-close-tdayfirst/index.html) | 期货卖出平仓（平今优先） | 以详情页为准 |
|  | [`sell_close_ydayfirst`](docs/qmt/builtin-python/api-reference/sell-close-ydayfirst/index.html) | 期货卖出平仓（平昨优先） | 以详情页为准 |
|  | [`sell_open`](docs/qmt/builtin-python/api-reference/sell-open/index.html) | 期货卖出开仓 | 以详情页为准 |

## 使用原则

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