a-share-paper-trading SKILL.md skillB
a-share-paper-trading from shouldnotappearcalm/a-share-skill is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add shouldnotappearcalm/a-share-skill/a-share-paper-trading@git:20260516.34e5cb4Pins git:20260516.34e5cb4 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- B, 16 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- shouldnotappearcalm/a-share-skill
- Path
a-share-paper-trading/SKILL.md- Versions recorded
- 5
- Latest version
- git:20260516.34e5cb4, committed May 16, 2026
- First version recorded
- Apr 10, 2026
- Size
- 8,062 bytes
- Repository stars
- 249
- License
- MIT
A股模拟盘交易与回测技能。Use when 用户要启动模拟仓服务、创建多账户、下限价单/市价单、撤单、查询持仓资金、验证涨跌停成交逻辑或运行A股回测。.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# A股模拟盘
独立的模拟盘 skill。交易服务、CLI、账户、撮合与行情适配都在本目录内,不依赖其他 skill 脚本。
## 何时使用
- 启动或检查模拟盘服务
- 创建/重置账户
- 限价买卖、市价买卖、撤单
- 查询账户、持仓、订单、成交
- 验证涨跌停、T+1、收盘过期
- 跑简单回测
## 启动
```bash
SKILL_DIR="<本skill绝对路径>"
python3 "$SKILL_DIR/scripts/paper_trading_service.py" --host 127.0.0.1 --port 18765
```
默认监听 `http://127.0.0.1:18765`,默认数据库不再落在 skill 目录,而是落到用户级数据目录:
- macOS: `~/Library/Application Support/a-share-paper-trading/paper_trading.db`
- Linux: `${XDG_DATA_HOME:-~/.local/share}/a-share-paper-trading/paper_trading.db`
若本机该端口**已有**模拟盘进程在跑,**不要**再启动第二个实例:会报 `Address already in use`,且多进程可能争用同一 SQLite 库文件。启动前可先检查端口是否在监听,例如:
```bash
lsof -iTCP:18765 -sTCP:LISTEN
```
或向 `http://127.0.0.1:18765/accounts` 发 `GET`(CLI 默认 `--base-url` 与此一致)。已有服务时直接用 `paper_trade_cli.py` 即可。
更推荐使用控制脚本常驻运行:
```bash
python3 "$SKILL_DIR/scripts/paper_trading_ctl.py" start
python3 "$SKILL_DIR/scripts/paper_trading_ctl.py" status
python3 "$SKILL_DIR/scripts/paper_trading_ctl.py" stop
```
在 macOS 上,如需持续自启动,可安装 launchd:
```bash
python3 "$SKILL_DIR/scripts/paper_trading_ctl.py" install-launchd
```
服务会:
- 交易时段定时撮合挂单
- 非交易时段停止撮合
- 收盘后让当日未成单过期
- 定时写账户净值快照
可用启动参数:
- `--host`
- `--port`
- `--db-path`
- `--match-interval`
…Read the whole file at its exact version.
How to install
mdr add shouldnotappearcalm/a-share-skill/a-share-paper-trading@sha256:661069e9fb7ed438The line at the top of this page pins the label git:20260516.34e5cb4, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_b7ynxvqpwfa3353m)
2 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 5 versions of this file, between Apr 10, 2026 and May 16, 2026, about one every 9 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260516.34e5cb4 latest | 2026-05-16 | 34e5cb4 | 8,062 B | B | view · diff |
| git:20260414.e1231bb | 2026-04-14 | e1231bb | 8,008 B | B | view · diff |
| git:20260410.62df63f | 2026-04-10 | 62df63f | 7,158 B | B | view · diff |
| git:20260410.4fd515e | 2026-04-10 | 4fd515e | 6,754 B | B | view · diff |
| git:20260410.4bf32bb | 2026-04-10 | 4bf32bb | 3,703 B | B | view |
Audit of the latest version
- fail: No link to a raw IP address (matched: http://127.0.0.1:18765)
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (8062 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No script tag
Starting a new one? Use a template for SKILL.md on mdpantry, which passes every one of these checks and says what to change in it.
Source
shouldnotappearcalm/a-share-skill · 249 stars · license MIT · pushed 2026-10-11 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_b7ynxvqpwfa3353m GET https://markdownregistry.com/api/v1/resolve?ref=shouldnotappearcalm/a-share-skill/a-share-paper-trading GET https://markdownregistry.com/api/v1/blob/661069e9fb7ed4381c5e07242beb5f2d0f2404ff4e40f14253ad02b2d199e732
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.