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 | $0.00031 | $0.00707 |
| Sonnet 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 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 放进**环境变量**,不要写死在代码里。 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.
- 9d 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 (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.
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…
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…
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…
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.
roblox-input
Use when handling Roblox keyboard, mouse, gamepad, touch, motion input, or cross-platform action binding.
roblox-performance
Use when profiling Roblox performance or diagnosing FPS, memory, network, mobile, or hot-path problems.