stock-data-fetch

stock-data-fetch is a skill for Claude Code, Codex from realnaka/alphaloop. It costs 62 tokens per session (1,414 once invoked), scanned A, original, MIT.

A data-fetching workflow for prices, company metrics, cryptocurrency, commodities, indexes, and market news across several regions and backup sources.

In plain words
What is it for?
Use it to retrieve snapshots for US, A-share, Hong Kong, and cryptocurrency markets, plus selected commodities, indexes, and news. API keys, where required, are read from environment variables.
Why use it?
It reduces the need to collect financial data manually from different services and can use fallback sources when one fails.

Skill for Claude CodeCodex

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

Good fit Use it to retrieve snapshots for US, A-share, Hong Kong, and cryptocurrency markets, plus selected commodities, indexes, and news. API keys, where required, are read from environment variables.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/realnaka/alphaloop/stock-data-fetch
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 realnaka/alphaloop --skill stock-data-fetch
Clone the repo
git clone --depth 1 https://github.com/realnaka/alphaloop

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-data-fetch

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/realnaka/alphaloop/stock-data-fetch"><img src="https://agentmods.dev/badge/skills/realnaka/alphaloop/stock-data-fetch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,414 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00062 $0.01414
Opus 5 $0.00031 $0.00707
Sonnet 5 $0.00012 $0.00283
Haiku 4.5 $0.00006 $0.00141

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

Security

Grade A, and why

stock-data-fetch scanned grade A with 1 finding 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 9d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

> **关于 `snapshot` 命令**:下文的 `snapshot` 是一个**可选的本地封装脚本**(自己用 Python/shell 包一层多源 failover 即可),不是随仓库分发的二进制。不想写脚本也没关系——本文档把每个市场的**免 key 直连端点**都列出来了,直接 `curl` 就能用。所有需要 key 的源(FMP/Finnhub/Longbridge)请把 key 放进**环境变量**,不要写死在代码里。
skills/stock-data-fetch/SKILL.md · 118 lines

How it starts

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

Stock Data Fetch

关于 snapshot 命令:下文的 snapshot 是一个可选的本地封装脚本(自己用 Python/shell 包一层多源 failover 即可),不是随仓库分发的二进制。不想写脚本也没关系——本文档把每个市场的免 key 直连端点都列出来了,直接 curl 就能用。所有需要 key 的源(FMP/Finnhub/Longbridge)请把 key 放进环境变量,不要写死在代码里。

Quick Start

snapshot TICKER [--no-news] [--no-commit]

One command. All markets. Automatic failover.

Data Sources

US Stocks

  1. FMP (primary) — quote, EV/EBITDA, FCF yield, growth rates, sector, beta, earnings
  2. Finnhub (fallback) — PE/PB/ROE, 52-week range (fills gaps FMP free tier lacks)
  3. Longbridge (backup) — 15min delayed, use only when FMP+Finnhub both fail

A-Shares

  1. Tencent qt.gtimg.cn — real-time, free, no key
  2. Sina hq.sinajs.cn — fallback, needs Referer header

HK Stocks

  1. Tencent qt.gtimg.cn — real-time, free, no key
  2. Sina hq.sinajs.cn — fallback
  3. Longbridge (backup) — 15min delayed

Cryptocurrency

  1. OKX — real-time, 200+ pairs, no key
  2. Hyperliquid — 7×24 perp prices, 230+ coins, no key
  3. Binance blocked (HTTP 451) in this region — don't retry

Commodities & Indices

  1. Hyperliquid — PAXG (gold), SPX (S&P 500 perp)
  2. Finnhub futures — CL=F (oil), SI=F (silver), NG=F (natgas), HG=F (copper)

News

  • Marketaux — entity-linked, sentiment-tagged

Backup

  • Longbridge OpenAPI — US/HK/China quotes, 15min delayed
  • Keys: LONGBRIDGE_APP_KEY, LONGBRIDGE_APP_SECRET
  • API base: https://openapi.longbridge.cn

Verified Sources

Source Markets Latency Key Required
FMP US Real-time ✅ Free
Finnhub US Real-time ✅ Free
Tencent qt China A/HK Real-time ❌ None
Sina China A/HK Real-time ❌ None
OKX Crypto Real-time ❌ None
Hyperliquid Crypto+Commodities Real-time ❌ None
Marketaux News Real-time ✅ Free
Longbridge US/HK/China 15min delay ✅ Account

Lessons Learned (Battle Scars)

Never Use These (in this network)

  • yfinance — rate limited + SSL errors. Hermes docs explicitly warn against it
  • akshare / akshare-one — both call eastmoney.com which is proxy-blocked
  • Google News RSS — guaranteed timeout
  • Binance — HTTP 451 (legal block)

Read the full file on GitHub · 118 lines

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. 9d ago First seen · 118 lines · 62 tokens per session scan A 3ab43321ab1b

Subscribe to this mod's changes

stock-data-fetch is a skill published in the GitHub repository realnaka/alphaloop (19 stars, last pushed 2mo ago), licensed MIT. It adds 62 tokens to every session and 1,414 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). 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

app-store-pricing

App Store pricing strategy, global equalization, subscription management, and regional pricing decisions using Apple's official 900-price-point system. Use when user asks about pricing tiers, IAP pricing, subscription pricing, regional pricing, price changes, App Store proceeds, base storefront selection, introductory…

markdavidgan/apple-dev-skills · 66 tokens

justfix

Use this skill when the user asks for a quote, estimate, price, or "how much" for a UK trades job – electrical, plumbing, locksmith, glazing, carpentry, handyperson, heating, gas, roofing, drains, white goods, or boiler service. Calls the JustFix Estimator MCP server to return a cost breakdown, scope summary, and a…

Just-Fix/justfix-skill · 90 tokens

alpha-vantage

Access real-time and historical stock market data, forex rates, cryptocurrency prices, commodities, economic indicators, and 50+ technical indicators via the Alpha Vantage API. Use when fetching stock prices (OHLCV), company fundamentals (income statement, balance sheet, cash flow), earnings, options data, market…

foryourhealth111-pixel/Vibe-Skills · 126 tokens

asc-ppp-pricing

Set territory-specific pricing for subscriptions and in-app purchases using current asc setup, pricing summary, price import, and price schedule commands. Use when adjusting prices by country or implementing localized PPP strategies.

rorkai/app-store-connect-cli-skills · 45 tokens

roblox-input

Use when handling Roblox keyboard, mouse, gamepad, touch, motion input, or cross-platform action binding.

TabooHarmony/roblox-brain · 26 tokens

roblox-performance

Use when profiling Roblox performance or diagnosing FPS, memory, network, mobile, or hot-path problems.

TabooHarmony/roblox-brain · 24 tokens