realtime-monitor

realtime-monitor is a skill for Claude Code, Codex from chengzuopeng/stock-sdk-mcp. It costs 21 tokens per session (1,095 once invoked), scanned A, original, ISC.

A stock-monitoring assistant described in Chinese that tracks selected shares across mainland China, Hong Kong, and United States markets. It can show current prices and identify notable price movements.

In plain words
What is it for?
Use it to query selected stocks, review price changes, identify large moves, or calculate example gains and losses from purchase prices.
Why use it?
It gathers quotes for several markets in one workflow and can compare current prices with provided purchase prices. This avoids checking each market or holding separately.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Use it to query selected stocks, review price changes, identify large moves, or calculate example gains and losses from purchase prices.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/chengzuopeng/stock-sdk-mcp/realtime-monitor
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add chengzuopeng/stock-sdk-mcp --skill realtime-monitor
Clone the repo
git clone --depth 1 https://github.com/chengzuopeng/stock-sdk-mcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for realtime-monitor

README.md
[![agentmods](https://agentmods.dev/badge/skills/chengzuopeng/stock-sdk-mcp/realtime-monitor/github.svg)](https://agentmods.dev/skills/chengzuopeng/stock-sdk-mcp/realtime-monitor)
Your own site
<a href="https://agentmods.dev/skills/chengzuopeng/stock-sdk-mcp/realtime-monitor"><img src="https://agentmods.dev/badge/skills/chengzuopeng/stock-sdk-mcp/realtime-monitor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for realtime-monitor

Your own site · 80×15
<a href="https://agentmods.dev/skills/chengzuopeng/stock-sdk-mcp/realtime-monitor"><img src="https://agentmods.dev/badge/skills/chengzuopeng/stock-sdk-mcp/realtime-monitor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,095 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 18 Mar 2026
  • Snyk pass 15 Feb 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00021 $0.01095
Opus 5 $0.00010 $0.00548
Sonnet 5 $0.00004 $0.00219
Haiku 4.5 $0.00002 $0.00110

Measured 12d ago against content hash 5cb5ae2e6520, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

realtime-monitor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/realtime-monitor/SKILL.md · 158 lines

What it actually says

🔔 实时监控

描述

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

能力范围

  • 批量查询多只股票的实时行情
  • 跨市场监控(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%,创近期新高
持仓盈亏模式

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

## 💰 持仓盈亏一览

| 股票 | 现价 | 买入价 | 盈亏比例 | 盈亏金额(假设100股) |
|------|------|--------|----------|---------------------|
| 贵州茅台 | 1474.92 | 1400 | +5.35% | +7,492 元 |
| 腾讯控股 | 388.6 | 350 | +11.03% | +3,860 港元 |

📈 **持仓总评**:整体盈利,表现良好

步骤 4: 异动检测

自动检测并提醒:

  • 涨幅/跌幅超过 5%
  • 接近涨停/跌停
  • 相对买入价有较大波动

高级用法

设置价格提醒

用户可以说:"当茅台跌破 1400 时提醒我"

AI 记录条件,并在后续查询时检查:

⚠️ **价格触发提醒**:
贵州茅台当前价格 1395.50,已跌破你设置的 1400 关注价位!

定时刷新

配合 OpenClaw 的定时任务功能,可实现定时推送:

# OpenClaw 定时任务配置
schedules:
  stock-monitor:
    cron: "*/5 9-15 * * 1-5"  # 交易时间每 5 分钟
    skill: realtime-monitor
    input:
      stocks: ["600519", "00700", "AAPL"]

示例

用户:帮我看一下持仓情况:茅台买入价 1400,腾讯买入价 350

AI

  1. 调用 get_quotes_by_query 查询茅台和腾讯
  2. 计算相对买入价的盈亏比例
  3. 输出持仓盈亏表格
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 158 lines · 21 tokens per session scan A 5cb5ae2e6520

Subscribe to this mod's changes

realtime-monitor is a skill published in the GitHub repository chengzuopeng/stock-sdk-mcp (100 stars, last pushed 3mo ago), licensed ISC. It adds 21 tokens to every session and 1,095 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

tradingview-mcp

AI Trading Intelligence — live prices, 30+ technical indicators, backtesting (6 strategies), walk-forward overfitting detection, trade logs, equity curves, licensed news sentiment (Marketaux), and multi-market screener. Supports stocks, crypto, ETFs, indices, Turkish (BIST), and Egyptian (EGX) markets.

atilaahmettaner/tradingview-mcp · 73 tokens

stablecoin-depeg-monitor

Monitor stablecoin peg stability and review historical depeg events. Covers real-time market stress signals and past incidents for USDT, USDC, DAI, USDe, FDUSD, and more. Use when users ask about depeg risk, stablecoin safety alerts, price stability, or "is my stablecoin safe right now". Powered by Barker…

okx/plugin-store · 91 tokens

stablecoin-depeg-monitor

Monitor stablecoin peg stability and review historical depeg events. Covers real-time market stress signals and past incidents for USDT, USDC, DAI, USDe, FDUSD, and more. Use when users ask about depeg risk, stablecoin safety alerts, price stability, or "is my stablecoin safe right now". Also for treasuries and…

barkermoney/barker-mcp · 121 tokens

stock-data

A market-data analysis tool for Chinese, Hong Kong and US stocks, plus cryptocurrencies. It retrieves prices, financial data, technical indicators and other market information through a command-line interface.

openstockdata/stock-data-skill · 64 tokens

finance

A local personal-finance ledger and query tool that stores income and expenses in a SQLite database. SQLite is a file-based database that runs locally without a separate service.

ruilisi/lsbot · 71 tokens

Freelance Empire

Complete freelance business operating system — from first client to six-figure solo business. Covers positioning, pricing, proposals, client management, finances, scaling, and the transition from side-hustle to full-time. Use when starting freelancing, raising rates, managing clients, building recurring revenue, or…

LeoYeAI/openclaw-master-skills · 71 tokens