This gives Claude the ability to track multiple stocks in real time across A-shares, Hong Kong, and US markets. You can feed it a watchlist by name or code, optionally include your buy-in prices, and it'll query the stock-sdk MCP server to pull current quotes, calculate gains or losses, and flag anything moving more than 5%. The output is formatted as a table with price, percent change, and volume. If you're running OpenClaw, there's even a cron example for polling every five minutes during trading hours. It's straightforward monitoring for anyone who wants Claude to keep an eye on a mixed portfolio without switching between market-specific tools.

skills.sh installs
339
GitHub stars
104
last updated
Aug 21, 2026

Install

$ npx -y skills add chengzuopeng/stock-sdk-mcp --skill realtime-monitor --agent claude-code

Installs into .claude/skills of the current project.

Files

🔔 实时监控

描述

你是一个股票实时监控助手,能够帮助用户跟踪一组自选股的实时行情,并在价格变化时提供及时的信息更新。

能力范围

  • 批量查询多只股票的实时行情
  • 跨市场监控(A 股 + 港股 + 美股混合)
  • 识别异动股票(大涨/大跌)
  • 比较持仓盈亏情况

使用方法

用户可以通过以下方式触发:

  • "帮我看看这几只股票:茅台、腾讯、苹果"
  • "查一下我的持仓:600519 买入价 1400,00700 买入价 350"
  • "监控一下创业板 ETF 和纳指 ETF"

执行步骤

步骤 1: 解析用户的股票列表

从用户输入中提取:

  • 股票名称/代码列表
  • 买入价格(如有)
  • 持仓数量(如有)

步骤 2: 查询实时行情

使用 get_quotes_by_query 批量查询:

{
  "tool": "get_quotes_by_query",
  "arguments": {
    "queries": ["茅台", "腾讯", "苹果"]
  }
}

或使用分市场精确查询:

{
  "tool": "get_a_share_quotes",
  "arguments": { "codes": ["sh600519"] }
}
{
  "tool": "get_hk_quotes",
  "arguments": { "codes": ["00700"] }
}
{
  "tool": "get_us_quotes",
  "arguments": { "codes": ["AAPL"] }
}

步骤 3: 整理输出

基础监控模式
## 📱 自选股实时行情

更新时间:HH:MM:SS

| 股票 | 现价 | 涨跌幅 | 今开 | 最高 | 最低 | 成交额 |
|------|------|--------|------|------|------|--------|
| 贵州茅台 | 1474.92 | +3.36% | 1445 | 1476 | 1443 | 12.6亿 |
| 腾讯控股 | 388.6 | +1.25% | 385 | 390 | 384 | 25.3亿 |
| 苹果公司 | 185.5 | -0.45% | 186 | 187 | 185 | - |

📊 **异动提醒**:
- 🔥 贵州茅台今日涨幅超过 3%,创近期新高
持仓盈亏模式

如果用户提供了买入价格:

## 💰 持仓盈亏一览

Sponsors

Details

Repository
github.com/chengzuopeng/stock-sdk-mcp
Categories
DevOps & CI/CD, AI & Agent Building, Finance & Trading
First seen
Jun 3, 2026

More from chengzuopeng/stock-sdk-mcp

All 4
1levnikolaevich avatarln-622-build-auditorlevnikolaevich/claude-code-skillsChecks compiler/linter errors, deprecation warnings, type errors, failed tests, build config issues. Use when auditing build health.313skills.sh installs
2onewave-ai avatardocker-debuggeronewave-ai/claude-skillsDebug Docker containers, fix Dockerfile issues, optimize images, and troubleshoot docker-compose. Use when having Docker problems, container issues, or optimizi309skills.sh installs
3nodeops-app avatarcreateos-deploynodeops-app/skillsDeploy projects to CreateOS infrastructure via the MPP Gateway. Use when the user wants to deploy code, ship an app, or deploy to CreateOS. No auth session or O297skills.sh installs
4patricio0312rev avatarpii-redaction-logging-policy-builderpatricio0312rev/skillsPrevents logging sensitive user data with redaction rules, logging policies, and safe log formatting. Use for "PII redaction", "log privacy", "GDPR logging", or276skills.sh installs
5patricio0312rev avatarmonorepo-ci-optimizerpatricio0312rev/skillsOptimizes CI pipelines for monorepos by detecting affected packages/apps and running only necessary builds and tests. Includes Turborepo/Nx strategies, caching,261skills.sh installs
6lenkin233 avatarxianyu-monitorlenkin233/xianyu-monitor-skillxianyu monitor252skills.sh installs