# Qmt Bridge Realtime Monitor

> >-

- **Type:** Skill
- **Install:** `agentstack add skill-atorber-qmt-trading-skill-qmt-bridge-realtime-monitor`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [atorber](https://agentstack.voostack.com/s/atorber)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [atorber](https://github.com/atorber)
- **Source:** https://github.com/atorber/qmt-trading-skill/tree/main/skills/qmt-bridge-realtime-monitor
- **Website:** https://atorber.github.io/qmt-trading-skill/

## Install

```sh
agentstack add skill-atorber-qmt-trading-skill-qmt-bridge-realtime-monitor
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# QMT Trading Skill · 实时监控

> **实现状态**：✅ `ws_subscribe.py` + WebSocket 规程

## 目标

规范 **WebSocket** 使用方式，避免 Agent 随意长连或泄露 Key。

## WebSocket 端点

| 路径 | 用途 | 认证 |
|------|------|------|
| `/ws/realtime` | 实时行情 | 无 |
| `/ws/whole_quote` | 全市场 | 无 |
| `/ws/l2_thousand` | L2 千档 | 无 |
| `/ws/formula` | 公式推送 | 无 |
| `/ws/download_progress` | 下载进度 | 无 |
| `/ws/trade` | 交易回报 | `?api_key=` |

详见 `docs/websocket.md`。

## 规程（规划）

1. 订阅前 `health` + 明确订阅代码列表
2. 交易回报：`/ws/trade` 与 `GET /api/trading/orders` 定期对账
3. 突破提醒：在客户端聚合 tick，**不**把全量 L2 dump 给 LLM
4. 断线重连：指数退避；记录最后 seq/时间
5. 停止订阅：明确 `unsubscribe` 或关闭连接

## 规划脚本（可选）

| 脚本 | 作用 |
|------|------|
| `scripts/ws_subscribe.py` | CLI 示例：订阅 codes 并打印摘要 N 秒 |

## 安全

- `/ws/trade` 的 api_key 勿写入日志
- 监控不等于自动下单

## 参考

- [qmt-bridge-technical-signal](../qmt-bridge-technical-signal/SKILL.md)
- [qmt-bridge-order-ops](../qmt-bridge-order-ops/SKILL.md)

## Source & license

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

- **Author:** [atorber](https://github.com/atorber)
- **Source:** [atorber/qmt-trading-skill](https://github.com/atorber/qmt-trading-skill)
- **License:** MIT
- **Homepage:** https://atorber.github.io/qmt-trading-skill/

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

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** yes
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-atorber-qmt-trading-skill-qmt-bridge-realtime-monitor
- Seller: https://agentstack.voostack.com/s/atorber
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
