yfinance

yfinance is a skill for Claude Code, Codex from SilvioBaratto/optimizer. It costs 170 tokens per session (2,598 once invoked), scanned A, original, no licence file.

A guide for working with yfinance, a Python tool that retrieves Yahoo Finance market data.

In plain words
What is it for?
Use it when fetching price history, financial statements, analyst data, stock and fund screens, live quotes, or sector, industry, and fund summaries.
Why use it?
It helps keep common finance-data tasks consistent when working with prices, company reports, analyst information, or investment categories.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/silviobaratto/optimizer/yfinance
Any agent
npx skills add SilvioBaratto/optimizer --skill yfinance
Clone the repo
git clone --depth 1 https://github.com/SilvioBaratto/optimizer

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/silviobaratto/optimizer/yfinance.svg)](https://agentmods.dev/skills/silviobaratto/optimizer/yfinance)
Your own site
<a href="https://agentmods.dev/skills/silviobaratto/optimizer/yfinance"><img src="https://agentmods.dev/badge/skills/silviobaratto/optimizer/yfinance.svg" alt="Measured on agentmods" height="20"></a>
Per session 170 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,598 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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 $0.00170 $0.02598
Opus 5 $0.00085 $0.01299
Sonnet 5 $0.00034 $0.00520
Haiku 4.5 $0.00017 $0.00260

Measured 4d ago against content hash 2fdb1d77c200, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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.

.claude/skills/yfinance/SKILL.md · 179 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

Files

What ships with it

10 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. 4d ago First seen · 179 lines · 170 tokens per session scan A 2fdb1d77c200

Subscribe to this mod's changes

yfinance is a skill published in the GitHub repository SilvioBaratto/optimizer (173 stars, last pushed 6d ago), with no licence file. It adds 170 tokens to every session and 2,598 once invoked, about $0.0009 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-08-30.

Related

Other skills, from other repositories

x402

Set up Browser Use Cloud payments with x402 — pay per request from a crypto wallet (USDC on Base mainnet), no signup or API key. Two setups it works out up front — "just use it" (set up a wallet so you or Claude Code can run cloud browser tasks paid from the wallet — Claude writes and runs throwaway scripts, nothing…

browser-use/browser-use · 175 tokens

project-graveyard

Scans the developer's machine for dead side projects, autopsies each one from its git history (died at the payments wall, killed by a newer project, finished but never shipped), surfaces their personal death patterns, and picks the corpse most worth resurrecting — then helps ship it. Use when the user mentions…

Shubhamsaboo/awesome-llm-apps · 127 tokens

connect-recommend

Use this skill when the user asks about Stripe Connect configuration, charge patterns, Dashboard access, or how to get started with Connect, is building a marketplace, platform, multi-vendor store, gig platform, or subscription platform, needs to pay out sellers, vendors, or providers, mentions split payments, revenue…

stripe/ai · 151 tokens

stripe-best-practices

Guides Stripe integration decisions across API selection (Checkout Sessions vs PaymentIntents), Connect platform setup (Accounts v2, controller properties), billing/subscriptions, tax and registrations (Stripe Tax, automatictax, product tax codes), Treasury financial accounts, integration options (Checkout, Payment…

stripe/ai · 134 tokens

tqsdk-trading-and-data

Explain, implement, or debug TqSdk Python workflows for waitupdate or ischanging update loops, market data retrieval, historical download, account type selection, funds or positions or orders or trades, field meanings, order placement or cancellation, target-position tools, TqScenario margin trials, real-account…

shinnytech/tqsdk-python · 286 tokens

t0

计算股票 T+0 交易的收益,考虑买入价、卖出价、手数、佣金、印花税。当用户提到做 T、T+0、股票做 T、短线做 T 时使用。.

CoderWanFeng/python-office · 53 tokens