yahoo-finance

yahoo-finance is a skill for Claude Code, Codex from gauss314/skills. It costs 27 tokens per session (3,006 once invoked), scanned A, original, MIT.

Instructions for accessing Yahoo Finance data through its unofficial web endpoints, returning information as JSON. Yahoo Finance provides market data such as prices, company figures, options, and news.

In plain words
What is it for?
Use it to retrieve current or historical prices, financial details, options, news, and data for stocks, funds, cryptocurrencies, currencies, bonds, and indexes.
Why use it?
It lets code request financial data directly without using the yfinance library or another wrapper, while documenting authentication and request limits.

Skill for Claude CodeCodex

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

Good fit Use it to retrieve current or historical prices, financial details, options, news, and data for stocks, funds, cryptocurrencies, currencies, bonds, and indexes.

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

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 yahoo-finance

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/gauss314/skills/yahoo-finance"><img src="https://agentmods.dev/badge/skills/gauss314/skills/yahoo-finance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,006 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00027 $0.03006
Opus 5 $0.00014 $0.01503
Sonnet 5 $0.00005 $0.00601
Haiku 4.5 $0.00003 $0.00301

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

Security

Grade A, and why

yahoo-finance 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 11d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/batch_fetch.py, scripts/download_historical.py, scripts/fetch_all.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.

Makes network callslowCapability

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

r = requests.get("https://query1.finance.yahoo.com/v8/finance/chart/AAPL",
skills/yahoo-finance/SKILL.md · 279 lines

How it starts

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

Yahoo Finance — API Directa (sin yfinance)

API no oficial de Yahoo Finance. Accedé a datos de acciones, ETFs, crypto, forex, bonos, índices, opciones, fundamentos y noticias mediante requests HTTP directos sin usar yfinance ni ningún wrapper.

Base URL: https://query1.finance.yahoo.com Alternativa: https://query2.finance.yahoo.com


⚠️ Importante

  • Yahoo no tiene API pública oficial desde 2017. Estos endpoints son no oficiales y pueden cambiar sin aviso.
  • Algunos endpoints requieren autenticación via cookie + crumb (abajo se explica).
  • El endpoint v8/finance/chart funciona sin autenticación (solo User-Agent de navegador).
  • Siempre implementar rate limiting y manejo de errores.

Documentación completa

Para referencia exhaustiva de todos los endpoints, campos, JSON structures, códigos de error, tickers internacionales, estrategias de rate limiting y ejemplos detallados, ver:

📖 references/API_REFERENCE.md

Ese documento incluye:

  • Los 33 módulos de quoteSummary con cada campo documentado
  • JSON responses completas de cada endpoint
  • Tickers internacionales (.BA para Argentina, .SA para Brasil, etc.)
  • WebSocket streaming
  • Screener, lookup, trending
  • Estrategias de rate limiting con exponential backoff y rotación de User-Agent

Varios endpoints requieren un crumb (token CSRF) que se obtiene con cookies de sesión.

import requests

BASE = "https://query1.finance.yahoo.com"
HEADERS = {
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"
}

def yahoo_session():
    """Retorna requests.Session con cookie A3 y crumb."""
    s = requests.Session()
    s.headers.update(HEADERS)
    s.get("https://fc.yahoo.com", timeout=10)
    crumb = s.get(f"{BASE}/v1/test/getcrumb", timeout=10).text.strip()
    s.params = {"crumb": crumb}
    return s

# Uso:
# s = yahoo_session()
# r = s.get("https://query1.finance.yahoo.com/v7/finance/quote?symbols=AAPL,MSFT")

Read the full file on GitHub · 279 lines

Files

What ships with it

5 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. 11d ago First seen · 279 lines · 27 tokens per session scan A 892d73bff266

Subscribe to this mod's changes

yahoo-finance is a skill published in the GitHub repository gauss314/skills (237 stars, last pushed 2mo ago), licensed MIT. It adds 27 tokens to every session and 3,006 once invoked, about $0.0001 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

pier-cloud

This skill should be used when the user needs to consume the Pier Cloud (Lighthouse) API for cloud cost management — including JWT authentication, listing contexts, workspaces, and FinOps data views. Trigger whenever there is a need to integrate, automate, or debug calls to the Pier Cloud platform via Python, Node.js…

fabricioctelles/skills · 72 tokens

finance

Comprehensive Finance API integration skill for real-time and historical financial data analysis, market research, and investment decision-making. Priority use cases: stock price queries, market data analysis, company financial information, portfolio tracking, market news retrieval, stock screening, technical…

jjyaoao/HelloAgents · 79 tokens

money

Revenue advisor — scans the Obsidian vault for work history and active projects, diagnoses the revenue system, and surfaces monetization opportunities the user can't see from inside their own perspective. Make sure to use this skill whenever the user says "/money", "how can I make more money", "review my revenue"…

kriscard/Skills · 103 tokens

payments-intelligence-post-validate

Validate and cross-check BIN, IBAN, and SWIFT identifiers in one call. Returns per-field results and a consistency check that flags country and bank mismatches.

bobadilla-tech/requiems-api-skills · 40 tokens

bin-lookup-get-{bin}

Returns card metadata for the given 6–8 digit BIN prefix.

bobadilla-tech/requiems-api-skills · 21 tokens

commodities-get-{commodity}

Returns the latest annual average price and up to 10 years of historical data for the requested commodity slug.

bobadilla-tech/requiems-api-skills · 27 tokens