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.5 $0.00011 $0.01202
Sonnet 5.5 $0.00005 $0.00601
Haiku 4.5 $0.00003 $0.00301

Measured 3mo ago against content hash 892d73bff266, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 3mo 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. 3mo 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 (258 stars, last pushed 5mo ago), licensed MIT. It adds 27 tokens to every session and 3,006 once invoked, about $0.0001 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.

Related

yahoo-finance compared with skills from other repositories

yahoo-finance next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
yahoo-financegauss314/skillsSkill2585mo agoMITA27Claude Code, Codex
pier-cloudfabricioctelles/skillsSkill1505d agoApache-2.0A75Claude Code, Codex
tfw-economicssaubakirov/trace-first-starterSkill3311d agoMITA20Claude Code, Codex
financejjyaoao/HelloAgentsSkill3.5k1mo agononeA79Claude Code, Codex
bin-lookup-get-{bin}bobadilla-tech/requiems-api-skillsSkill218d agoMITA21Claude Code
commodities-get-{commodity}bobadilla-tech/requiems-api-skillsSkill218d agoMITA27Claude Code
inflation-get-inflationbobadilla-tech/requiems-api-skillsSkill218d agoMITA27Claude Code