📈
AutomationPython

A Share Paper Trading

by shouldnotappearcalm

A Share Paper Trading is an Automation skill for Claude Code, published by shouldnotappearcalm in a-share-skill.

232 stars42 forkson shouldnotappearcalm/a-share-skillAdded 2026/09/03Repository updated 2026/06/24
a-shareagent-skillsakshareclaude-codeclaude-skillsmcppaper-tradingquantstock
Install in seconds
Install A Share Paper Trading
Copy A Share Paper Trading into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/shouldnotappearcalm/a-share-skill/tree/main/a-share-paper-trading ~/.claude/skills/a-share-paper-trading

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/shouldnotappearcalm/a-share-skill.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
a-share-paper-trading/SKILL.md in shouldnotappearcalm/a-share-skill
Installs to
~/.claude/skills/a-share-paper-trading
Collection
One of 5 skills cataloged from this repository
Category
Automation1754 skills

What A Share Paper Trading does

A Share Paper Trading provides an A-share paper trading service, CLI, and backtest tools for creating accounts, placing orders, checking positions, and validating trading rules. Use it when you need to simulate trades or run simple A-share backtests.

A Share Paper Trading is cataloged under Automation on DirSkills. A Share Paper Trading comes from a repository tagged a-share, agent-skills, akshare, claude-code and claude-skills.

Documentation

README

A股模拟盘

独立的模拟盘 skill。交易服务、CLI、账户、撮合与行情适配都在本目录内,不依赖其他 skill 脚本。

何时使用

  • 启动或检查模拟盘服务
  • 创建/重置账户
  • 限价买卖、市价买卖、撤单
  • 查询账户、持仓、订单、成交
  • 验证涨跌停、T+1、收盘过期
  • 跑简单回测

启动

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 库文件。启动前可先检查端口是否在监听,例如:

lsof -iTCP:18765 -sTCP:LISTEN

或向 http://127.0.0.1:18765/accountsGET(CLI 默认 --base-url 与此一致)。已有服务时直接用 paper_trade_cli.py 即可。

更推荐使用控制脚本常驻运行:

This is the opening of the README. Read the full README on GitHub.

Commands A Share Paper Trading provides

Slash commands named in this skill’s SKILL.md, listed in the order they first appear.

  • /accounts
  • /orders
  • /backtest
  • /health

Frequently asked about A Share Paper Trading

  • What else does shouldnotappearcalm publish alongside A Share Paper Trading?

    A Share Paper Trading is one of 5 skills that DirSkills catalogs from shouldnotappearcalm/a-share-skill, the repository it ships in. Its siblings there include A-Share Data, MACD Trend Resonance Stock Picker and Second Golden Cross. Each one is a separate skill with its own page in this directory, installs the same way A Share Paper Trading does, and is maintained by shouldnotappearcalm in that same repository. The rest of the collection is listed on the shouldnotappearcalm/a-share-skill page.

  • How does A Share Paper Trading compare to other Automation skills?

    A Share Paper Trading ranks #1561 by stars among the 1754 Automation skills in this catalog. The most-starred ones next to it are Autonomous Loops, Autonomous Agent Harness and Automation Audit Ops. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of A Share Paper Trading against them. Open each page to compare what they document and how they install.