serennity007/awesome-stock-quant-skills/qmt-bridge-daily-pnl
Claude Code and agent skill by serennity007/awesome-stock-quant-skills
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
通过 QMT Bridge 查看当日盈亏:结合当前持仓、昨仓与当日买卖成交计算,含已清仓标的。 在用户提到今日盈亏、当日收益、赚了多少、盘面盈亏时使用。只读。
Install
npx vskill@latest install serennity007/awesome-stock-quant-skills/qmt-bridge-daily-pnlSKILL.md
The same SKILL.md was published earlier as atorber/qmt-trading-skill/qmt-bridge-daily-pnl.
QMT Trading Skill · 当日盈亏
实现状态:✅daily_pnl_snapshot.py可用(见 ROADMAP.md)
目标
快速回答「今天账户盈亏多少」:优先 QMT today_profit_loss;否则用持仓 + 当日成交 + 行情计算(非仅当前持仓量 × 涨跌幅)。
估算公式(单标的):
当日盈亏 = 现市值 − 昨收×昨仓 − 今日买入金额 + 今日卖出金额
拆解:昨仓浮动、今买浮动、今卖已实现;已清仓但当日有卖出的标的单独列出。
脚本
| 脚本 | 作用 | |
|---|---|---|
scripts/daily_pnl_snapshot.py | asset + positions + trades,汇总当日盈亏(含已清仓) |
主要 API
| 方法 | 路径 | 说明 | |
|---|---|---|---|
| GET | /api/trading/positions | 持仓(含昨仓、QMT 当日盈亏等) | |
| GET | /api/trading/trades | 当日成交(买卖金额) | |
| GET | /api/trading/asset | 资产 | |
| GET | /api/market/full_tick | 现价/昨收 | |
| GET | /api/utility/batch_stock_name | 中文名称 |
操作规程
- 拉
positions、trades、asset - 按标的汇总当日买入/卖出量与金额;昨仓优先
yesterday_volume,否则现仓 − 今买 + 今卖 - 有 QMT
today_profit_loss则直接采用;否则用上述公式 +full_tick现价/昨收 - 输出持仓标的与当日已清仓标的;可选
--no-detail隐藏拆解 - 只读;与柜台可能有手续费/分红等细微差异
安全
- 只读;交易查询需
X-API-Key - 不提供投资建议式结论
参考
- qmt-bridge-portfolio-risk · qmt-bridge-execution-review
[REST API](https://atorber.github.io/qmt-bridge/rest-api/)
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/atorber__qmt-trading-skill/skills/qmt-bridge-daily-pnl/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/serennity007/awesome-stock-quant-skills/qmt-bridge-daily-pnl)