通过 QMT Bridge 输出组合风险快照:仓位权重、现金占比、单票集中度、可卖数量与 T+1 提示。 在用户提到仓位风险、集中度、组合敞口、下单前风控检查时使用。只读。
Scanned 9/2/2026
Install to Claude Code
npx -y skills add Serennity007/awesome-stock-quant-skills --skill qmt-bridge-portfolio-risk --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Qmt Bridge Portfolio Risk?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/serennity007-qmt-bridge-portfolio-risk)More formats (shields.io, HTML) on the badges page.
---
name: qmt-bridge-portfolio-risk
description: >-
通过 QMT Bridge 输出组合风险快照:仓位权重、现金占比、单票集中度、可卖数量与 T+1 提示。
在用户提到仓位风险、集中度、组合敞口、下单前风控检查时使用。只读。
---
# QMT Trading Skill · 组合风险
> **实现状态**:✅ `portfolio_snapshot.py` 可用
## 目标
**下单前**快速回答:钱够不够、仓是否过重、哪些票今天不能卖。
## 规划脚本
| 脚本 | 作用 |
|------|------|
| `scripts/portfolio_snapshot.py` | positions + asset + 批量 tick 算权重与浮盈(可选) |
## 主要 API
| 方法 | 路径 | 说明 |
|------|------|------|
| GET | `/api/trading/positions` | 持仓 |
| GET | `/api/trading/asset` | 资产 |
| GET | `/api/market/full_tick` | 现价(批量) |
| GET | `/api/trading/position/{stock_code}` | 单票核查 |
## 规程(规划)
1. 拉 `asset`:`cash`、`market_value`、`total_asset`
2. 拉 `positions`,计算单票 `market_value / total_asset`
3. **阈值提示**(可在脚本参数配置):单票权重 >30% 警告;现金占比过低警告
4. `can_use_volume < volume` → 标注 T+1 可卖不足
5. 通过 `batch_stock_name` 显示中文名称
6. 只读,不自动下单
## 安全
- 只读;交易查询需 API Key
- 阈值规则由用户配置,Skill 不做投资建议
## 参考
- [qmt-bridge-trading](../qmt-bridge-trading/SKILL.md) · `[REST API](https://atorber.github.io/qmt-bridge/rest-api/)`
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...
Ultra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested.
**Complete production-ready guide for Google Gemini embeddings API** This skill provides comprehensive coverage of the `gemini-embedding-001` model for generating text embeddings, including SDK usage, REST API patterns, batch processing, RAG integration with Cloudflare Vectorize, and advanced use cases like semantic search and document clustering. ---
Use when a repo needs CodeGraph plus ast-grep for Codex MCP setup, exploration, impact analysis, structural search, or safe refactor planning.
Interview, source-challenge, verify, save, and ADR-gate fuzzy coding requests into Codex-ready implementation specs. Use when a feature, bugfix, refactor, migration, repo-wide change, or architecture task needs user-verified requirements, source-backed decisions, durable architecture decisions, acceptance criteria, validation commands, rollout notes, saved spec/ADR files, and a Codex execution prompt. Do not use when already fully specified or when the user wants direct implementation now.