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.
npx skills add realnaka/alphaloop --skill stock-data-fetchgit clone --depth 1 https://github.com/realnaka/alphaloopWrote 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.
[](https://agentmods.dev/skills/realnaka/alphaloop/stock-data-fetch)<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.
<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>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00062 | $0.01414 |
| Opus 5.5 | $0.00025 | $0.00566 |
| Sonnet 5.5 | $0.00012 | $0.00283 |
| Haiku 4.5 | $0.00006 | $0.00141 |
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 2mo 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 放进**环境变量**,不要写死在代码里。 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
- FMP (primary) — quote, EV/EBITDA, FCF yield, growth rates, sector, beta, earnings
- Finnhub (fallback) — PE/PB/ROE, 52-week range (fills gaps FMP free tier lacks)
- Longbridge (backup) — 15min delayed, use only when FMP+Finnhub both fail
A-Shares
- Tencent qt.gtimg.cn — real-time, free, no key
- Sina hq.sinajs.cn — fallback, needs Referer header
HK Stocks
- Tencent qt.gtimg.cn — real-time, free, no key
- Sina hq.sinajs.cn — fallback
- Longbridge (backup) — 15min delayed
Cryptocurrency
- OKX — real-time, 200+ pairs, no key
- Hyperliquid — 7×24 perp prices, 230+ coins, no key
- Binance blocked (HTTP 451) in this region — don't retry
Commodities & Indices
- Hyperliquid — PAXG (gold), SPX (S&P 500 perp)
- 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)
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.
- 2mo ago First seen · 118 lines · 62 tokens per session scan A 3ab43321ab1b
stock-data-fetch is a skill published in the GitHub repository realnaka/alphaloop (20 stars, last pushed 4mo ago), licensed MIT. It adds 62 tokens to every session and 1,414 once invoked, about $0.0002 per session on Opus 5.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.
stock-data-fetch compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| stock-data-fetchrealnaka/alphaloop | Skill | 20 | 4mo ago | MIT | A | 62 | Claude Code, Codex |
| channel-economicsborghei/Claude-Skills | Skill | 1.1k | 14d ago | none | A | 45 | Claude Code |
| cro-advisorborghei/Claude-Skills | Skill | 1.1k | 14d ago | none | A | 48 | Claude Code |
| ma-playbookborghei/Claude-Skills | Skill | 1.1k | 14d ago | none | A | 47 | Claude Code |
| cfo-advisorborghei/Claude-Skills | Skill | 1.1k | 14d ago | none | A | 41 | Claude Code |
| xlsx-toolkitborghei/Claude-Skills | Skill | 1.1k | 14d ago | none | A | 47 | Claude Code |
| app-store-pricingmarkdavidgan/apple-dev-skills | Skill | 5 | 2mo ago | MIT | A | 66 | Claude Code |