qmt-bridge-kline-backfill
校验近N个交易日两市成交额(上证+深证)是否可用于复盘。默认仅用 get_full_tick 写当日 与本地日缓存,不拉历史 K 线。用户提到补齐K线、近3日量能缺失、复盘前校验时使用。
Skill by atorber
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/atorber-qmt-bridge-kline-backfill
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 26, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/qmt-bridge-kline-backfill
What's inside
- Skill name
qmt-bridge-kline-backfill- Description
- 校验近N个交易日两市成交额(上证+深证)是否可用于复盘。默认仅用 get_full_tick 写当日 与本地日缓存,不拉历史 K 线。用户提到补齐K线、近3日量能缺失、复盘前校验时使用。
- License
- MIT
- Instructions
- 86 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (3)
- SKILL.md
- backfill_recent_index_kline.py · scripts/
- index_turnover_recent.py · scripts/
SKILL.md (first lines)
# QMT Trading Skill · 近3日量能校验
> **实现状态**:✅ `index_turnover_recent.py` · `backfill_recent_index_kline.py`
> 共享逻辑:`_shared/market_turnover_util.py`
## 目标
在执行复盘前,校验近 N 日(默认 3)两市成交额是否齐全:
- 上证指数:`000001.SH`
- 深市指数:`399106.SZ`(tick 缺 amount 时回退 `399001.SZ`)
## 官方推荐 vs 本项目策略
迅投知识库([指数数据](http://dict.thinktrader.net/dictionary/indexes.html)):
| 场景 | 官方 API | 本项目复盘热路径 |
|------|----------|------------------|
| **当日成交额** | `get_full_tick` → `amount` | ✅ `GET /api/market/full_tick` |
| **历史指数日 K** | `download_history_data` + `get_market_data_ex` | ❌ 禁用(易 BSON 崩溃) |
| **历史缺口** | 需本地已下载数据 | ✅ `reports/market_turnover_daily.json` 每日 tick 累积 |
复盘/校验**默认不调用** `download_batch`、`get_local_data`、`get_market_data_ex`、`get_market_data`。
可选 `--try-history`:先 `download_batch` 指数日线,再 `get_market_data` 子进程补历史并写入缓存(QMT 异常时慎用)。
**推荐补齐近 3 日缺口**(历史缺失时):
```bash
# 1. 下载指数日线(仅 3 只,勿全市场)
python -c "
from datetime import date, timedelta
import sys; sys.path.insert(0,'skills/_shared')
from common import load_env_files, make_client
import argparse
load_env_files()
c,_=make_client(argparse.Namespace(host='127.0.0.1',port=8080,api_key='test-auto',account_id=None),False)
e=date.today().strftime('%Y%m%d'); s=(date.today()-timedelta(days=12)).strftime('%Y%m%d')
print(c.download_batch(['000001.SH','399106.SZ','399001.SZ'], period='1d', start_time=s, end_time=e))
"
# 2. 读 amount 写入缓存并展示明细
python skills/qmt-bridge-kline-backfill/scripts/index_turnover_recent.py \
--host 127.0.0.1 --port 8080 --try-history
```
## 脚本
```bash
# 查看近3日上证+深证成交额明细(亿元)
python skills/qmt-bridge-kline-backfill/scripts/index_turnover_recent.py \
--host 127.0.0.1 --port 8080
# 查看近3日成交额明细;历史缺口加 --try-history
python skills/qmt-bridge-kline-backfill/scripts/index_turnover_recent.py \
--host 127.0.0.1 --port 8080
# 可选:尝试从本地 K 线补历史(慎用,优先用上一条)
python skills/qmt-bridge-kline-backfill/scripts/index_turnover_recent.py \
--try-history --host 127.0.0.1 --port 8080
# 兼容旧入口(同上逻辑)
python skills/qmt-bridge-kline-backfill/scripts/backfill_recent_index_kline.py --json
```
## 参数
| 参数 | 说明 |
|------|------|
| `--days` | 需要覆盖的最近交易日数量(默认 3) |
| `--try-history` | 可选尝试 `get_market_data` 补历史(默认关闭) |
| `--json` | 输出机器可读结果 |
## 输出说明
- `ok=true`:近 N 个交易日缓存/tick 均有沪+深成交额
- `ok=false`:列出缺失交易日;连续多日收盘复盘会自动写入缓存
- `method`:默认 `full_tick+cache`
## 排障
1. 当日 tick 失败 → 检查 QMT 登录与行情
2. 历史不足 → 正常(需多日累积);勿反复跑 `--try-history`
3. BSON / 服务无响应 → **重启 QMT 客户端**,再重启 BridgeFrom atorber/qmt-trading-skill, MIT.
More from atorber/qmt-trading-skill
- 0.610score
qmt-bridge-feishu-doc
atorber
将 QMT Trading Skill 复盘/盈亏/分析报告同步到飞书云文档:规定云空间目录与标题命名, 通过官方 lark-cli 与 lark-doc、lark-drive、lark-shared Skill 完成(不用仓库 scripts/ 飞书脚本)。 在用户提到上传飞书、同步复盘文档、飞书云文档时使用。
SkillBFreshness: B★ 25Claude Code +9 - 0.610score
qmt-bridge-setup
atorber
安装、配置并启动 QMT Bridge(qmt-server / PM2),检查健康状态,并同步本仓客户端 .env。 在用户提到安装 Bridge、启动 qmt-server、PM2 守护、Bridge 连不上、健康检查、 配置 miniQMT 路径或 API Key 时使用。不涉及下单。
SkillBFreshness: B★ 25Claude Code +9 - 0.610score
qmt-bridge-execution-review
atorber
通过 QMT Bridge 生成当日交易复盘:客观证据(委托/成交/滑点/不操作基线/规则标签)+ Agent 层投顾/基金经理/交易员三角色专家评审与综合裁决。 在用户提到今日成交、交易复盘、今日操作评估、执行质量、三角色复盘、专家复盘、 不操作少赚多亏时使用。只读。
SkillBFreshness: B★ 25Claude Code +9 - 0.610score
qmt-bridge-return-analysis
atorber
通过 QMT Bridge 分析 1/2/3/4/5/10/30 日累计涨幅、形态/量价涨跌概率, 并输出下一交易日操作策略与观察点。支持 --holdings 自动读持仓、缺 K 线则下载。 在用户提到持仓阶段强弱、N日涨幅、涨跌概率、量价、明日怎么观察时使用。只读。
SkillBFreshness: B★ 25Claude Code +9 - 0.610score
qmt-bridge-trading
atorber
通过 QMT Bridge HTTP API 执行证券交易:持仓/资产/委托查询、单笔与批量下单、撤单、清仓。 在用户提到 qmt-bridge 交易、下单、持仓、清仓、撤单、查询资产,或需操作 miniQMT 账户时使用。 本文件随 QMT Trading Skill(qmt-trading-skill…
SkillBFreshness: B★ 25Claude Code +9 - 0.607score
qmt-bridge-financial-download
atorber
通过 QMT Bridge 将财报下载到服务端缓存(POST)。在用户提到下载财报、补财务数据、 刷新 Pershareindex、下载 ROE 数据、财报缓存时使用;筛选指标请用 fundamental-screen。
SkillBFreshness: B★ 25Claude Code +9 - 0.607score
qmt-bridge-fundamental-screen
atorber
通过 QMT Bridge 筛选财报指标:按字段过滤、显示中文名称。缺数时可自动补下载。 在用户提到基本面、财报筛选、ROE、EPS、排雷时使用;仅下载缓存请用 financial-download。
SkillBFreshness: B★ 25Claude Code +9 - 0.607score
qmt-bridge-hk-connect
atorber
通过 QMT Bridge 查询港股通标的、连接方向与经纪商字典,辅助港股通投资筛选。 在用户提到港股通、沪港通、深港通、港股标的时使用。只读。
SkillBFreshness: B★ 25Claude Code +9 - 0.607score
qmt-bridge-market-watch
atorber
通过 QMT Bridge 对自选标的做行情快照:涨跌幅、现价、指数环境、交易日校验。 在用户提到看盘、自选监控、盘前检查、行情快照、大盘环境时使用。只读,不下单。
SkillBFreshness: B★ 25Claude Code +9 - 0.607score
qmt-bridge-convertible
atorber
通过 QMT Bridge 查询可转债列表与条款信息,辅助转债双低、强赎等策略观察。 在用户提到可转债、转债、强赎、转股时使用。只读。
SkillBFreshness: B★ 25Claude Code +9 - 0.607score
qmt-bridge-order-ops
atorber
通过 QMT Bridge 管理当日委托:查询可撤单、单笔/批量撤单、委托详情。 在用户提到撤单、取消委托、查挂单、可撤订单、错单处理时使用。写操作须用户确认。
SkillBFreshness: B★ 25Claude Code +9 - 0.607score
qmt-bridge-portfolio-risk
atorber
通过 QMT Bridge 输出组合风险快照:仓位权重、现金占比、单票集中度、可卖数量与 T+1 提示。 在用户提到仓位风险、集中度、组合敞口、下单前风控检查时使用。只读。
SkillBFreshness: B★ 25Claude Code +9
Signals
- Stars
- 25
- Forks
- 7
- Open issues
- 0
- Last commit (this folder)
- Aug 14, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/atorber/qmt-trading-skill
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from atorber
- 0.610score
qmt-bridge-setup
atorber
安装、配置并启动 QMT Bridge(qmt-server / PM2),检查健康状态,并同步本仓客户端 .env。 在用户提到安装 Bridge、启动 qmt-server、PM2 守护、Bridge 连不上、健康检查、 配置 miniQMT 路径或 API Key 时使用。不涉及下单。
SkillBFreshness: B★ 25Claude Code +9 - 0.610score
qmt-bridge-trading
atorber
通过 QMT Bridge HTTP API 执行证券交易:持仓/资产/委托查询、单笔与批量下单、撤单、清仓。 在用户提到 qmt-bridge 交易、下单、持仓、清仓、撤单、查询资产,或需操作 miniQMT 账户时使用。 本文件随 QMT Trading Skill(qmt-trading-skill…
SkillBFreshness: B★ 25Claude Code +9 - 0.610score
qmt-bridge-feishu-doc
atorber
将 QMT Trading Skill 复盘/盈亏/分析报告同步到飞书云文档:规定云空间目录与标题命名, 通过官方 lark-cli 与 lark-doc、lark-drive、lark-shared Skill 完成(不用仓库 scripts/ 飞书脚本)。 在用户提到上传飞书、同步复盘文档、飞书云文档时使用。
SkillBFreshness: B★ 25Claude Code +9 - 0.610score
qmt-bridge-return-analysis
atorber
通过 QMT Bridge 分析 1/2/3/4/5/10/30 日累计涨幅、形态/量价涨跌概率, 并输出下一交易日操作策略与观察点。支持 --holdings 自动读持仓、缺 K 线则下载。 在用户提到持仓阶段强弱、N日涨幅、涨跌概率、量价、明日怎么观察时使用。只读。
SkillBFreshness: B★ 25Claude Code +9 - 0.610score
qmt-bridge-execution-review
atorber
通过 QMT Bridge 生成当日交易复盘:客观证据(委托/成交/滑点/不操作基线/规则标签)+ Agent 层投顾/基金经理/交易员三角色专家评审与综合裁决。 在用户提到今日成交、交易复盘、今日操作评估、执行质量、三角色复盘、专家复盘、 不操作少赚多亏时使用。只读。
SkillBFreshness: B★ 25Claude Code +9 - 0.607score
qmt-bridge-daily-pnl
atorber
通过 QMT Bridge 查看当日盈亏:结合当前持仓、昨仓与当日买卖成交计算,含已清仓标的。 在用户提到今日盈亏、当日收益、赚了多少、盘面盈亏时使用。只读。
SkillBFreshness: B★ 25Claude Code +9
Cite this page
qmt-bridge-kline-backfill skill. Agent Mart. https://agentmart.dev/skills/atorber-qmt-bridge-kline-backfill (last updated 2026-10-24)