stock-price

stock-price is a skill for Claude Code, Codex from idea2realClaw/myAgent. It costs 0 tokens per session (1,799 once invoked), scanned A, original, MIT.

A Chinese-language assistant for checking stock prices in US, Hong Kong, and mainland Chinese markets. It can also provide historical prices, monitor changes, and convert between US dollars, Hong Kong dollars, and Chinese yuan.

In plain words
What is it for?
Use it to check one or many stocks, view basic price data and history, monitor price changes, and convert supported currencies.
Why use it?
It gathers market information across several exchanges in one conversation instead of requiring separate lookups and currency calculations.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to check one or many stocks, view basic price data and history, monitor price changes, and convert supported currencies.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/idea2realclaw/myagent/stock-price
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 idea2realClaw/myAgent --skill stock-price
Clone the repo
git clone --depth 1 https://github.com/idea2realClaw/myAgent

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 stock-price

README.md
[![agentmods](https://agentmods.dev/badge/skills/idea2realclaw/myagent/stock-price/github.svg)](https://agentmods.dev/skills/idea2realclaw/myagent/stock-price)
Your own site
<a href="https://agentmods.dev/skills/idea2realclaw/myagent/stock-price"><img src="https://agentmods.dev/badge/skills/idea2realclaw/myagent/stock-price/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 stock-price

Your own site · 80×15
<a href="https://agentmods.dev/skills/idea2realclaw/myagent/stock-price"><img src="https://agentmods.dev/badge/skills/idea2realclaw/myagent/stock-price.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,799 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.
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.00000 $0.01799
Opus 5 $0.00000 $0.00899
Sonnet 5 $0.00000 $0.00360
Haiku 4.5 $0.00000 $0.00180

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

Security

Grade A, and why

stock-price 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 10d ago.

The scan reads SKILL.md. This mod also ships 5 executable files (check_realtime.py, fetch_qcom.py, multi_source_fetcher.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/stock-price/SKILL.md · 243 lines

How it starts

The opening of the file, as written. The whole thing — 243 lines — stays where its author put it; the contents beside it link to each section on GitHub.

实时股票价格查询助手

简介

本Skill帮助用户快速查询美股、港股、A股的实时股票价格信息,支持多只股票批量查询、历史数据获取、价格变动监控等功能。

适用场景

  • 查询单只或多只股票的实时价格
  • 获取股票的基本信息(公司名、代码、市场)
  • 监控股票价格变动
  • 获取历史价格数据
  • 汇率转换(美元/港币/人民币)

核心能力

1. 多市场实时价格查询

  • A股:上海/深圳交易所(代码格式:000000、600000、300000等)
  • 港股:港交所(代码格式:00700、9988等)
  • 美股:NASDAQ/NYSE(代码格式:AAPL、TSLA等)

2. 价格信息包括

  • 实时价格
  • 涨跌幅
  • 涨跌额
  • 今开/今收
  • 最高/最低
  • 成交量
  • 成交额
  • 更新时间

3. 汇率转换

  • 美元 ↔ 港币
  • 美元 ↔ 人民币
  • 港币 ↔ 人民币
  • 支持批量转换

使用方法

场景一:单只股票查询

输入格式:

查询 腾讯 价格

股票 0700.HK

输出示例:

腾讯控股 (0700.HK)
实时价格:385.20 港元
涨跌:+2.80 (+0.73%)
今开:382.00
今收:385.20
最高:386.40
最低:381.80
成交量:12.5M
更新时间:2026-03-25 21:30:00

场景二:多只股票批量查询

输入格式:

查询:腾讯 阿里 苹果 特斯拉

输出示例:

股票实时价格(2026-03-25 21:30)

代码          名称        价格        涨跌幅        市值
0700.HK      腾讯控股    385.20      +0.73%       3.6万亿
09988.HK     阿里巴巴    85.40       -1.20%       1.8万亿
AAPL         苹果        178.50      +1.50%       2.8万亿美元
TSLA         特斯拉      245.30      -2.30%       7800亿美元

场景三:价格监控

输入格式:

监控 腾讯 价格

功能:

  • 每分钟查询一次价格
  • 当价格变动超过设定阈值(如±2%)时提醒
  • 持续监控直到用户停止

场景四:历史数据查询

输入格式:

历史 腾讯 5天

输出示例:

腾讯控股 (0700.HK) 近5天价格

日期        开盘        收盘        涨跌幅
03-25       382.00      385.20      +0.73%
03-24       380.50      382.50      +0.53%
03-23       378.00      380.50      +0.66%
03-22       375.50      378.00      +0.67%
03-21       373.00      375.50      +0.67%

场景五:市场概览

输入格式:

市场概览

输出示例:

主要市场指数(2026-03-25 21:30)

A股市场:
上证指数:3250.50 (+0.85%)
深证成指:10580.20 (+1.20%)
创业板指:2125.80 (+1.50%)

港股市场:
恒生指数:25277.32 (+0.88%)
恒生科技:4872.38 (+2.48%)

美股市场(前一日收盘):
道琼斯:34500.80 (-0.50%)
纳斯达克:13500.20 (+1.20%)
标普500:4450.30 (+0.80%)

数据源

免费数据源

  1. Yahoo Finance API

    • 支持全球市场
    • 更新延迟15分钟(免费版)
    • 覆盖A股、港股、美股
  2. 新浪财经接口

    • A股实时数据
    • 更新延迟3秒
    • 仅支持A股
  3. 腾讯财经接口

    • 港股实时数据
    • 更新延迟3秒
    • 仅支持港股

付费数据源(可选)

  1. Wind API
  2. 东方财富API
  3. 同花顺API

技术实现

Python工具函数

Read the full file on GitHub · 243 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 10d ago First seen · 243 lines · 0 tokens per session scan A 4d378f614cfe

Subscribe to this mod's changes

stock-price is a skill published in the GitHub repository idea2realClaw/myAgent (2 stars, last pushed 21d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,799 tokens. 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-31.

Related

Other skills, from other repositories

sector-rotation

An analysis framework for comparing industries in the Chinese A-share stock market, using business conditions, price momentum, valuation, and money flows. It produces rankings and higher- or lower-allocation suggestions.

HKUDS/Vibe-Trading · 39 tokens

strategy-pivot-designer

Detect backtest iteration stagnation and generate structurally different strategy pivot proposals when parameter tuning reaches a local optimum.

tradermonty/claude-trading-skills · 28 tokens

twitter-reader

Read Twitter/X for financial research using opencli (read-only). Use this skill whenever the user wants to read their Twitter feed, search for financial tweets, view bookmarks, look up user profiles, or gather market sentiment from Twitter/X. Triggers include: "check my feed", "search Twitter for", "show my…

himself65/finance-skills · 161 tokens

chenhao-limit-up

A framework for judging Chinese A-share stocks that have reached the daily price-rise limit, using market mood, sector leadership, and trading momentum.

questflowai/investorskills · 44 tokens

trading-risk-gate

Unified pre-trade safety gate: Ruin check (Law #1), ergodicity audit, and win-rate dominance validation. Absorbs: ergodicity-check, law-of-ruin, win-rate-dominance.

winstonkoh87/Athena-Public · 53 tokens

furusato

A Japanese hometown-tax donation manager for furusato nozei, a system where donations to municipalities can qualify for an income-tax or local-tax deduction. It reads donation receipts, stores donation records, and calculates deduction limits.

kazukinagata/shinkoku · 102 tokens