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.

Install it, pinned
mdr add shouldnotappearcalm/a-share-skill/a-share-paper-trading@git:20260516.34e5cb4

Pins 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

The exact contents, by fingerprint
mdr add shouldnotappearcalm/a-share-skill/a-share-paper-trading@sha256:661069e9fb7ed438

The 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.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_b7ynxvqpwfa3353m.svg)](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.

versioncommittedcommitsizeaudit
git:20260516.34e5cb4 latest2026-05-16 34e5cb4 8,062 BB view · diff
git:20260414.e1231bb2026-04-14 e1231bb 8,008 BB view · diff
git:20260410.62df63f2026-04-10 62df63f 7,158 BB view · diff
git:20260410.4fd515e2026-04-10 4fd515e 6,754 BB view · diff
git:20260410.4bf32bb2026-04-10 4bf32bb 3,703 BB view

Audit of the latest version

B  16 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • 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

GitHub

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.

More from shouldnotappearcalm/a-share-skill

a-share-data SKILL.md skill
shouldnotappearcalm/a-share-skill · a-share-data/SKILL.md · 查询A股行情、历史K线与复权、财务指标、公司新闻公告、概念及入选依据、行业分类与成分、解禁、回购、股东增减持、涨停炸板详情、龙虎榜席位、板块热力图、指数、宏观及A+H上市信息。用于股票数据查询、原始数据测试和数据源异常排查。
git:20261011.8874bd1 · audit A · 249 stars
a-share-strategy-allmarket-multi-swing-defensive SKILL.md skill
shouldnotappearcalm/a-share-skill · a-share-strategy-allmarket-multi-swing-defensive/SKILL.md · A 股全市场高流动性池内按趋势回踩(trend_pullback)产出买入候选与持仓卖出信号;另有 realtime_quotes 批量拉取现价快照。供下单前决策;不跑回测、不自动下单。Use when…
git:20260928.4f3e948 · audit A · 249 stars
a-share-strategy-mainboard-multi-swing-defensive SKILL.md skill
shouldnotappearcalm/a-share-skill · a-share-strategy-mainboard-multi-swing-defensive/SKILL.md · A 股主板流动性池内按趋势回踩(trend_pullback)产出买入候选与持仓卖出信号;另有 realtime_quotes 批量拉取现价快照。供下单前决策;不跑回测、不自动下单。Use when…
git:20260928.4f3e948 · audit A · 249 stars
macd-second-golden-cross SKILL.md skill
shouldnotappearcalm/a-share-skill · macd-second-golden-cross/SKILL.md · A股“MACD底背离 + 零轴下二次金叉”实战分析与交易执行技能。用于把用户的盘感描述转成可执行的三档决策(上观察名单/可试错出手/必须放弃)、盘中检查单、入场与风控规则。适用于用户提到“二次金叉”“水下二次金叉”“底背离”“第一脚第二脚”…
git:20260415.a0bd3aa · audit A · 249 stars
macd-trend-resonance-stock-picker SKILL.md skill
shouldnotappearcalm/a-share-skill · macd-trend-resonance-stock-picker/SKILL.md · 基于“均线定方向,MACD定节奏”的A股选股与交易计划技能。Use when 用户要求把均线与MACD结合做选股、筛票、盘前候选池、趋势跟随、回踩再上、金叉确认、顶背离减仓、或希望把技术判断沉淀成可执行规则与风控模板。
git:20260415.5dd22f3 · audit A · 249 stars
tuige-shortline-trading SKILL.md skill
shouldnotappearcalm/a-share-skill · tuige-shortline-trading/SKILL.md · 基于退哥短线交易规则的A股场景化决策技能。Use when 用户要按交易场景查看短线规则、做选股、判断趋势回踩、涨停回调、连板接力、洗盘结束、卖出失效或仓位纪律。
git:20260618.0a0582c · audit A · 249 stars

Every file in shouldnotappearcalm/a-share-skill

Browse by kind, by grade B, or by owner.