qmt-trader

qmt-trader is a skill for Claude Code, Codex from litaolemo/xtquant_big_convert. It costs 190 tokens per session (5,035 once invoked), scanned A, original, MIT.

A command-line tool for connecting an AI assistant to 大 QMT, a Chinese quantitative trading platform, to read market and account data and send trades.

In plain words
What is it for?
It helps inspect live prices, historical K-line charts, assets, holdings, orders and trades; place or cancel buy and sell orders; and view sector, market-flow and financial data.
Why use it?
It avoids writing custom Python code for each market or account query. It also provides guidance for installing and checking the bridge that lets the assistant communicate with QMT.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps inspect live prices, historical K-line charts, assets, holdings, orders and trades; place or cancel buy and sell orders; and view sector, market-flow and financial data.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/litaolemo/xtquant_big_convert/qmt-trader
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add litaolemo/xtquant_big_convert --skill qmt-trader
Clone the repo
git clone --depth 1 https://github.com/litaolemo/xtquant_big_convert

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for qmt-trader

README.md
[![agentmods](https://agentmods.dev/badge/skills/litaolemo/xtquant_big_convert/qmt-trader/github.svg)](https://agentmods.dev/skills/litaolemo/xtquant_big_convert/qmt-trader)
Your own site
<a href="https://agentmods.dev/skills/litaolemo/xtquant_big_convert/qmt-trader"><img src="https://agentmods.dev/badge/skills/litaolemo/xtquant_big_convert/qmt-trader/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for qmt-trader

Your own site · 80×15
<a href="https://agentmods.dev/skills/litaolemo/xtquant_big_convert/qmt-trader"><img src="https://agentmods.dev/badge/skills/litaolemo/xtquant_big_convert/qmt-trader.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 190 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,035 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00190 $0.05035
Opus 5.5 $0.00076 $0.02014
Sonnet 5.5 $0.00038 $0.01007
Haiku 4.5 $0.00019 $0.00504

Measured 1mo ago against content hash fd0594f34ef3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

qmt-trader scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/qmt.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

qmt-trader/SKILL.md · 364 lines

How it starts

The opening of the file, as written. The whole thing — 364 lines — stays where its author put it; the contents beside it link to each section on GitHub.

QMT Trader — 大模型驱动的 QMT 交易/行情工具

来源

概述

本 skill 提供一个确定性 CLI 脚本 scripts/qmt.py,让大模型通过命令行调用大 QMT 的全部 交易与行情能力,避免每次现场写 Python 代码。所有命令默认输出 JSON(便于解析),加 --table 切换人类可读表格。

前置条件:本 skill 依赖 xtquant_big_convert 桥接服务已部署运行。若 ping 失败或用户尚未部署, 先按下文「首次部署」引导完成:装包 → 同步 QMT 端文件 → 写配置 → QMT 里运行入口 → 验证。

首次部署(只需一次,AI 逐步引导用户完成)

部署分两端:客户端(跑本 skill/策略的开发机)和服务端(大 QMT 客户端内置 Python)。

第 1 步:客户端安装包

pip install "xtquant-big-convert[redis]"   # redis 传输(默认,推荐)
# 或 zmq 同机低延迟:pip install xtquant-big-convert(基础版已含 pyzmq)

没发布到 PyPI 的私有 fork 用源码安装:git clone <repo> && cd xtquant_big_convert && pip install -e .[redis]

第 2 步:把服务端文件同步到 QMT 的 python 目录

需要拷 4 项到大 QMT 的 python 目录(如 D:\QMT交易端\python\):

bigqmt_signal_trader/                  (整个包,pip 装的在 site-packages 里)
bigqmt_signal_trader_strategy.py
bigqmt_signal_trader_redis_rpc_runtime.py
BIGQMT_REDIS_DRYRUN.py                 (★ QMT 编辑器入口,GBK 编码)

pip 安装后的文件位置可以用这条命令定位(输出目录里就有全部 4 项):

python -c "import bigqmt_signal_trader_strategy as m, os; print(os.path.dirname(m.__file__))"

QMT 沙箱若拒绝 import redis(部分券商白名单拦截),改用仓库里的 bigqmt_no_redis/ 无 redis 版本(自包含 ZMQ 传输)。

第 3 步:创建 QMT 端私有配置

在 QMT 的 python 目录创建 bigqmt_signal_trader_local_config.py(含账号密码,不要提交 git):

# coding: utf-8
BIGQMT_ACCOUNT_ID = "资金账号"
BIGQMT_REDIS_CONFIG = {
    "host": "Redis地址", "port": 6379, "db": 5, "password": "Redis密码",
    "rpc_allow_order_methods": False,     # 下单开关,默认关闭;确认风控后改 True
    "rpc_process_in_listener": True,
    "rpc_listener_methods": ("*",),
    "rpc_background_threads": True,       # redis 用后台收包线程最快;zmq/pipe 要改 False
    "schedule_adjust": True,
    "schedule_adjust_interval": "100nMilliSecond",
}

这个开关按传输选,选反了差几十倍(实测见 docs/USER_GUIDE.md 的传输对比表): redis 用 True(3.4ms),zmq 用 False 走 adjust drain(zmq 15.8ms)。 zmq 配 True 是 592.9ms —— 慢 37 倍。原因是 zmq / pipe 的后台线程每次都要付 跨线程 GIL 交接(约一个 adjust tick),redis 的 brpop 唤醒没有这一步。

切 zmq:配置里加 "transport": "zmq" 并把 rpc_background_threads 改 False (QMT 端需装 pyzmq 19.0.2,Python 3.6 最后支持的版本)。

Read the full file on GitHub · 364 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed fd0594f34ef3
  2. 1mo ago Changed · +5 lines 94477130f83d
  3. 1mo ago Changed · +8 lines d1a370e5684f
  4. 2mo ago Changed · +4 lines de04931a1f6f
  5. 2mo ago First seen · 347 lines · 190 tokens per session scan A 4a68077cae10

Subscribe to this mod's changes

qmt-trader is a skill published in the GitHub repository litaolemo/xtquant_big_convert (808 stars, last pushed 9d ago), licensed MIT. It adds 190 tokens to every session and 5,035 once invoked, about $0.0008 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

qmt-trader compared with skills from other repositories

qmt-trader next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
qmt-traderlitaolemo/xtquant_big_convertSkill8089d agoMITA190Claude Code, Codex
sector-rotationHKUDS/Vibe-TradingSkill38kyesterdayMITA39Claude Code, Codex
twitter-readerhimself65/finance-skillsSkill3.5k2d agoMITA110Claude Code
strategy-pivot-designertradermonty/claude-trading-skillsSkill3.7k2d agoMITA28Claude Code, Codex
energy-procurementhashgraph-online/awesome-codex-pluginsSkill1.5kyesterdayApache-2.0A93Claude Code, Codex
airdrop-hunting-guidenirholas/three.wsSkill269todayApache-2.0A54Claude Code, Codex
multi-expert-analyzerdigoal/blogSkill8.6k2d agoGPL-2.0A292Codex