# 按当前任务查找 QMT 文章 从环境准备、首次运行、行情取数、委托回报到排错,按当前任务进入已收录的 QMT 内置 Python 文章。 规范地址:https://quantx.asia/docs/qmt/builtin-python/learning/task-map/ 适用平台:QMT 内置 Python;运行环境:builtin-python 内容更新:2026-10-11 资料来源: - [迅投知识库:快速开始(本站已收录的官方来源)](https://dict.thinktrader.net/innerApi/start_now.html) - [QMT 官方原文:行情函数](https://quantx.asia/docs/qmt/builtin-python/api-reference/categories/market-functions/) - [QMT 官方原文:交易函数](https://quantx.asia/docs/qmt/builtin-python/api-reference/categories/trading-functions/) --- 从你现在要完成的事情进入文章。首次使用可按下面顺序阅读;维护已有代码时,可以直接选择所需环节。本文是已有内容的任务目录,官方章节仍按原分类连续阅读。 ## 准备环境和模型 | 要做的事 | 阅读入口 | 阅读后应能确认 | |---|---|---| | 获取并登录客户端 | [客户端与登录](https://quantx.asia/docs/qmt/builtin-python/getting-started/client-login/) | 使用的客户端与登录入口 | | 核对内置 Python 环境 | [使用须知](https://quantx.asia/docs/qmt/builtin-python/environments/environment-setup/) | 当前环境与依赖要求 | | 熟悉界面,创建模型 | [界面操作](https://quantx.asia/docs/qmt/builtin-python/guides/interface-operation/) · [创建策略](https://quantx.asia/docs/qmt/builtin-python/getting-started/create-first-strategy/) | 模型保存位置与运行入口 | ## 运行已有示例,理解回调 | 要做的事 | 阅读入口 | 阅读后应能确认 | |---|---|---| | 完成第一次运行 | [第一次运行导读](https://quantx.asia/docs/qmt/builtin-python/learning/first-run/) · [运行步骤](https://quantx.asia/docs/qmt/builtin-python/getting-started/run-first-strategy/) | 初始化和行情回调是否执行 | | 理解行情何时触发代码 | [`handlebar`](https://quantx.asia/docs/qmt/builtin-python/api-reference/handlebar/) · [系统函数原文](https://quantx.asia/docs/qmt/builtin-python/api-reference/categories/system-functions/) | 当前场景的触发方式 | | 在实时行情中观察模拟信号 | [模拟信号](https://quantx.asia/docs/qmt/builtin-python/getting-started/simulation-signal/) | 信号记录与真实委托的区别 | | 查看完整示例与回测 | [完整示例](https://quantx.asia/docs/qmt/builtin-python/examples/examples/) · [第一次回测](https://quantx.asia/docs/qmt/builtin-python/getting-started/first-backtest/) | 参数、日期与结果之间的对应关系 | ## 准备并取得行情数据 | 要做的事 | 阅读入口 | 阅读后应能确认 | |---|---|---| | 下载需要的数据 | [数据下载](https://quantx.asia/docs/qmt/builtin-python/getting-started/data-download/) | 证券、周期与覆盖日期 | | 获取历史或实时行情 | [行情函数原文](https://quantx.asia/docs/qmt/builtin-python/api-reference/categories/market-functions/) · [`get_market_data_ex`](https://quantx.asia/docs/qmt/builtin-python/api-reference/contextinfo-get-market-data-ex/) | 入参、返回字段与数据准备要求 | | 获取全推行情或订阅 | [`get_full_tick`](https://quantx.asia/docs/qmt/builtin-python/api-reference/contextinfo-get-full-tick/) · [`subscribe_whole_quote`](https://quantx.asia/docs/qmt/builtin-python/api-reference/contextinfo-subscribe-whole-quote/) | 获取结果与订阅回调各自的用途 | 按用途阅读:[行情取数导读](https://quantx.asia/docs/qmt/builtin-python/api/market-data/) · [最新全推行情导读](https://quantx.asia/docs/qmt/builtin-python/api/get-full-tick/) · [订阅与回调导读](https://quantx.asia/docs/qmt/builtin-python/api/subscribe-quote/)。 ## 查看委托、成交和回报 先确认运行模式,再按实际调用接口阅读参数和状态。看到信号后,仍需分别核对委托记录与成交记录。 - [模型交易操作](https://quantx.asia/docs/qmt/builtin-python/getting-started/model-trading/):核对交易入口及运行设置。 - [交易函数原文](https://quantx.asia/docs/qmt/builtin-python/api-reference/categories/trading-functions/):按下单、查询等用途查接口。 - [查看委托、成交与回报](https://quantx.asia/docs/qmt/builtin-python/api/order-callback/):理解记录与状态。 - [成交回报实时主推函数](https://quantx.asia/docs/qmt/builtin-python/api-reference/categories/callback-functions/):查回调签名和字段。 ## 按现象排查 | 看到的现象 | 阅读入口 | |---|---| | 不知道流程停在哪里 | [没有成交时从哪一步查](https://quantx.asia/docs/qmt/builtin-python/learning/diagnose-no-trades/) | | 没有日志 | [策略没有日志](https://quantx.asia/docs/qmt/builtin-python/troubleshooting/no-strategy-log/) | | 行情为空 | [实时数据为空](https://quantx.asia/docs/qmt/builtin-python/troubleshooting/realtime-data-empty/) | | 条件成立却没有委托 | [有信号却没有委托](https://quantx.asia/docs/qmt/builtin-python/troubleshooting/signal-but-no-order/) | | 委托存在但未成交 | [委托未成交](https://quantx.asia/docs/qmt/builtin-python/troubleshooting/order-not-filled/) | ## 已经知道函数名 直接打开[函数与资料索引](https://quantx.asia/docs/qmt/builtin-python/api-reference/)。独立页适合查单个签名、字段和返回值;官方长章适合按上下文连续阅读。阅读旧提取片段时留意版本与示例缩进说明。