Stock API
Fetch real-time stock quotes, K-line (candlestick) history, and search symbols for China A-shares, Hong Kong, and US markets. Use when the user asks for a stock price, a quote, market data, candlestick/K-line data, or to look up a stock code by company name.
Install
npx skills add zhangxiangliang/stock-api --skill stock-apigit clone --depth 1 https://github.com/zhangxiangliang/stock-api.git /tmp/stock-api
mkdir -p ~/.claude/skills
cp -r /tmp/stock-api/. ~/.claude/skills/stock-apiPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# stock-api Get normalized stock market data by running the `stock-api` CLI. It covers China A-shares, Hong Kong, and US markets, with automatic provider fallback across Tencent, Sina, and Eastmoney. ## When to use - The user wants a current price or quote for one or more stocks. - The user wants K-line / candlestick history for charting or analysis. - The user knows a company name but not its code (search first, then quote). ## How to run Use `npx stock-api <command>`. Every command prints JSON to stdout. Stock codes use a market prefix: `SH` / `SZ` (China), `HK` (Hong Kong), `US` (US). Examples: `SH510500`, `SZ000651`, `HK02020`, `USDJI`. ### Get one quote ```bash npx stock-api get-stock SH510500 ``` ### Get several quotes at once ```bash npx stock-api get-stocks SH510500 SZ000651 ``` ### Get K-line (candlestick) history ```bash npx stock-api get-klines SH600519 --period week --count 20 ``` - `--period` — `day` (default), `week`, or `month`. - `--count` — number of rows (defaults to the provider default). - `--adjust` — `none` (default), `qfq` (forward), or `hfq` (backward). ### Search a code by keyword ```bash npx stock-api search-stocks 格力电器 ``` ## Options (all commands) - `--source` — `auto` (default), `tencent`, `sina`, or `eastmoney`. Leave it on `auto` unless the user asks for a specific provider; `auto` falls back across providers if one fails. ## Notes - Output is JSON — parse it, don't reformat by hand, before showing the user.
Details
- Skill name
stock-api- Repository
- zhangxiangliang/stock-api
- License
- MIT
- Repo updated
- 31 October 2026
FAQ
What does the Stock API skill do?
Fetch real-time stock quotes, K-line (candlestick) history, and search symbols for China A-shares, Hong Kong, and US markets. Use when the user asks for a stock price, a quote, market data, candlestick/K-line data, or to look up a stock code by company name.
How do I install the Stock API skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add zhangxiangliang/stock-api --skill stock-api. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Stock API popular?
It lives in zhangxiangliang/stock-api, which has 1,988 GitHub stars and 227 forks.
Related skills
Global Stock Data
1.8ksimonlin1212/global-stock-data
美股港股全栈数据工具包(官方源优先)— 十六层架构·50+端点·17数据源·全部零鉴权。在原有行情/K线/技术指标(MA/MACD/RSI/KDJ/布林带)/基本面/资金面/期权/SEC Filing/工具八层之上,新增:CBOE官方期权链(完整希腊字母+IV+0DTE流+异动识别)、FINRA全市场每日空头成交量、SEC EDGAR申报事件流(Form4内部人/8-K/13F机构持仓)、EDGAR全市场横截面筛选、美债收益率曲线/CFTC COT/财报日历;V2.1 新增全球利率汇率层(BIS 38家央行政策利率、欧洲央行汇率/利率/欧元区收益率曲线、纽约联储SOFR/EFFR、美联储H.10汇率/H.6货币存量、美国财政部国债拍卖/联邦债务),Yahoo K线修复全历史日线与时区并支持日本/台湾/韩国/印度/欧洲等市场代码;V2.2 新增CBOE波动率指数历史与VIX期限结构、FINRA做空余额(每月两期)、SEC Form 4内部人逐笔交易与13F机构持仓解析、台股官方OpenAPI(证交所+柜买中心,可商用)、美国能源信息署EIA原油/天然气价格与库存。每个数据源标注合规级别与条款原文。内嵌全部调用代码,自包含零依赖外部文件。适用于美股港股个股分析、全市场筛选、财报解读、期权与0DTE策略、做空数据追踪、内部人交易与13F持仓、SEC文件检索、资金流与机构持仓分析、全球利率
Upgrade Stripe
2kstripe/ai
Guide for upgrading Stripe API versions, webhook endpoints, server-side SDKs, Stripe.js, and mobile SDKs
Crypto Market Rank
1.1kbinance/binance-skills-hub
Crypto market leaderboards — ranked aggregate feeds across the whole market: social-hype/sentiment rank, trending / top-search / Binance Alpha / tokenized-stocks rank, smart-money net-inflow rank (which tokens received the most inflow), top meme tokens by breakout score on Pulse launchpad, top trader PnL leaderboard (ALL / KOL). Use whenever the user wants a ranked list of tokens or addresses by some metric — phrases like "trending tokens", "top N by hype", "leaderboard", "rank by X", "biggest inflows", "top traders this week".
Stripe Best Practices
2kstripe/ai
Guides Stripe integration decisions across development and test environment planning (separate sandboxes vs the shared test mode sandbox), API selection (Checkout Sessions vs PaymentIntents), Connect platform setup (Accounts v2, controller properties), billing/subscriptions, tax and registrations (Stripe Tax, automatic_tax, product tax codes), Treasury financial accounts, integration options (Checkout, Payment Element), migrating from deprecated Stripe APIs, and security best practices (API key management, API key permissions, webhooks, OAuth). Use when planning, building, modifying, testing,
Query Token Audit
1.1kbinance/binance-skills-hub
Query token security audit to detect scams, honeypots, and malicious contracts before trading. Returns comprehensive security analysis including contract risks, trading risks, and scam detection. Use when users ask "is this token safe?", "check token security", "audit token", or before any swap.
Press Release
7.8kdeanpeters/Product-Manager-Skills
Write an Amazon-style press release that defines customer value before building. Use when aligning stakeholders on a new product, feature, or strategic bet.
Browse the most popular Claude skills, all finance & crypto skills, or write your own with the skills generator.