AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Qmt Bridge Daily Pnl

skill-atorber-qmt-trading-skill-qmt-bridge-daily-pnl · by atorber

>-

No reviews yet
0 installs
38 views
0.0% view→install

Install

$ agentstack add skill-atorber-qmt-trading-skill-qmt-bridge-daily-pnl

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-atorber-qmt-trading-skill-qmt-bridge-daily-pnl)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
3mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Qmt Bridge Daily Pnl? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

QMT Trading Skill · 当日盈亏

> 实现状态:✅ daily_pnl_snapshot.py 可用(见 [ROADMAP.md](../ROADMAP.md))

目标

快速回答「今天账户盈亏多少」:优先 QMT today_profit_loss;否则用持仓 + 当日成交 + 行情计算(非仅当前持仓量 × 涨跌幅)。

估算公式(单标的):

当日盈亏 = 现市值 − 昨收×昨仓 − 今日买入金额 + 今日卖出金额

拆解:昨仓浮动、今买浮动、今卖已实现;已清仓但当日有卖出的标的单独列出。

脚本

| 脚本 | 作用 | |------|------| | scripts/daily_pnl_snapshot.py | asset + positions + trades,汇总当日盈亏(含已清仓) |

python skills/qmt-bridge-daily-pnl/scripts/daily_pnl_snapshot.py --host 127.0.0.1 --port 8080 --api-key KEY
python skills/qmt-bridge-daily-pnl/scripts/daily_pnl_snapshot.py --json

主要 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 | 中文名称 |

操作规程

  1. positionstradesasset
  2. 按标的汇总当日买入/卖出量与金额;昨仓优先 yesterday_volume,否则 现仓 − 今买 + 今卖
  3. 有 QMT today_profit_loss 则直接采用;否则用上述公式 + full_tick 现价/昨收
  4. 输出持仓标的与当日已清仓标的;可选 --no-detail 隐藏拆解
  5. 只读;与柜台可能有手续费/分红等细微差异

安全

  • 只读;交易查询需 X-API-Key
  • 不提供投资建议式结论

参考

  • [qmt-bridge-portfolio-risk](../qmt-bridge-portfolio-risk/SKILL.md) · [qmt-bridge-execution-review](../qmt-bridge-execution-review/SKILL.md)
  • docs/rest-api.md

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.