yfinance

yfinance is a skill for Claude Code, Codex from skloxo/TideTrading. It costs 46 tokens per session (2,433 once invoked), scanned A, original, MIT.

A Python package and supporting client for Yahoo Finance data. It can provide market information such as quotes, historical prices, company financial statements, options, holders, and insider transactions.

In plain words
What is it for?
It is for loading market data for analysis or backtesting and retrieving company, options, ownership, and insider information.
Why use it?
It gives code a way to obtain financial-market data without manually collecting it from Yahoo Finance pages.

Skill for Claude CodeCodex

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

Good fit It is for loading market data for analysis or backtesting and retrieving company, options, ownership, and insider information.

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

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 yfinance

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/skloxo/tidetrading/yfinance"><img src="https://agentmods.dev/badge/skills/skloxo/tidetrading/yfinance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,433 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00046 $0.02433
Opus 5 $0.00023 $0.01216
Sonnet 5 $0.00009 $0.00487
Haiku 4.5 $0.00005 $0.00243

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

Security

Grade A, and why

yfinance scanned grade A with 0 findings 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 5d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agent/src/skills/yfinance/SKILL.md · 256 lines

How it starts

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

yfinance

Overview

yfinance is an open-source Python wrapper for Yahoo Finance, providing global market data (US stocks, HK stocks, ETFs, indices) including historical and real-time quotes. Completely free, no registration or API key required.

The project has a built-in yfinance DataLoader (backtest/loaders/yfinance_loader.py). When backtesting, set source: "yfinance" or source: "auto" to invoke it automatically.

For OHLCV bars in agent/swarm work, prefer the get_market_data tool when it is available. It routes through the project loader layer, normalizes symbols, removes malformed OHLC rows, and returns strict JSON. Use direct yfinance calls mainly for data outside OHLCV coverage such as company info, financial statements, options, holders, and insider transactions.

Deep Yahoo Interfaces (references/)

Beyond the yfinance package, the project ships a built-in Yahoo public-API client (backtest.loaders.yahoo_client) and two read-only agent tools that sit on top of it. These reach Yahoo's own unauthenticated JSON endpoints directly via requests (no yfinance install needed), share one throttled HTTP gate (Yahoo rate-limits by source IP), and handle the cookie+crumb handshake automatically. Each interface has its own reference doc — read the one you need rather than loading them all:

Doc Covers
yahoo_client.get_chart Direct v8 OHLCV bars (range or epoch window)
yahoo_client.get_quote_summary v10 quoteSummary modules (key stats, financials, ownership)
yahoo_client.get_options v7 option chain (expirations + calls/puts)
yahoo_client.search v1 instrument search by ticker/name
get_options_chain tool Agent tool: US options ladder envelope
get_stock_profile tool Agent tool: company profile/estimates/ownership envelope

Read the full file on GitHub · 256 lines

Files

What ships with it

6 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. 5d ago First seen · 256 lines · 46 tokens per session scan A aed38132b84c

Subscribe to this mod's changes

yfinance is a skill published in the GitHub repository skloxo/TideTrading (10 stars, last pushed yesterday), licensed MIT. It adds 46 tokens to every session and 2,433 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.