Skip to content
Back to skills

Qmt Bridge Order Ops

ASecurity

通过 QMT Bridge 管理当日委托:查询可撤单、单笔/批量撤单、委托详情。 在用户提到撤单、取消委托、查挂单、可撤订单、错单处理时使用。写操作须用户确认。

  • 19 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 2, 2026
ai-agentspythonbashgitapi

Works with

  • api

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned September 2, 2026

npx -y skills add Serennity007/awesome-stock-quant-skills --skill qmt-bridge-order-ops --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Qmt Bridge Order Ops?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Qmt Bridge Order Ops
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/serennity007-qmt-bridge-order-ops/badge)](https://www.skillsdirectory.com/skills/serennity007-qmt-bridge-order-ops)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: qmt-bridge-order-ops
description: >-
  通过 QMT Bridge 管理当日委托:查询可撤单、单笔/批量撤单、委托详情。
  在用户提到撤单、取消委托、查挂单、可撤订单、错单处理时使用。写操作须用户确认。
---

# QMT Trading Skill · 委托运维

> **实现状态**:✅ `list_orders.py`、`cancel_orders.py` 可用

## 目标

盘中**不新增敞口**的委托管理:查单、撤单;与 [qmt-bridge-trading](../qmt-bridge-trading/SKILL.md) 分工(后者负责下单/清仓)。

## 脚本

| 脚本 | 作用 |
|------|------|
| `scripts/list_orders.py` | 当日委托列表;`--cancelable-only` 仅可撤 |
| `scripts/cancel_orders.py` | `--sysid` 或 `--cancelable-only`;`--execute --confirm` 撤单 |

```bash
python skills/qmt-bridge-order-ops/scripts/list_orders.py --host 127.0.0.1 --port 8080 --api-key KEY
python skills/qmt-bridge-order-ops/scripts/cancel_orders.py --sysid 411494 --stock 688676.SH --execute --confirm
```

## 主要 API

| 方法 | 路径 | 说明 |
|------|------|------|
| GET | `/api/trading/orders` | 委托列表 |
| GET | `/api/trading/order/{order_id}` | 指定委托 |
| GET | `/api/trading/order_detail` | 委托详情 |
| POST | `/api/trading/cancel` | 撤单 |
| POST | `/api/trading/batch_cancel` | 批量撤单 |
| POST | `/api/trading/cancel_by_sysid` | 按合同编号撤单 |

## 规程(规划)

1. 默认 `list_orders.py` 只读展示
2. 撤单前列出:`stock_code`、方向、价格、剩余量、`order_sysid`
3. **必须用户确认**后 `cancel_orders.py --execute --confirm`
4. 撤单后建议再查 `orders` 核对状态

## 安全

- 撤单影响实盘;禁止未经确认批量撤全部
- 401 → API Key;勿泄露 Key

## 参考

- [qmt-bridge-trading](../qmt-bridge-trading/SKILL.md) · `[REST API](https://atorber.github.io/qmt-bridge/rest-api/)`

Files in this skill

  • SKILL.md1.8 KB
  • scripts/README.md254 B
  • scripts/cancel_orders.py6.2 KB
  • scripts/list_orders.py2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.