price-history

price-history is a skill for Claude Code from staskh/trading_skills. It costs 41 tokens per session (380 once invoked), scanned A, original, MIT.

A historical stock-price reader fetches OHLCV data from Yahoo Finance. OHLCV means each record includes the opening, highest, lowest, and closing prices plus trading volume.

In plain words
What is it for?
Use it to retrieve price history for a ticker over periods ranging from one day to the full available record, with intervals such as one day, one hour, or one week.
Why use it?
It provides structured past-price data for a chosen time span and interval instead of requiring manual downloads or chart reading.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to retrieve price history for a ticker over periods ranging from one day to the full available record, with intervals such as one day, one hour, or one week.

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

Made for: Claude Code.

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 price-history

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/staskh/trading_skills/price-history"><img src="https://agentmods.dev/badge/skills/staskh/trading_skills/price-history.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 380 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.00041 $0.00380
Opus 5.5 $0.00016 $0.00152
Sonnet 5.5 $0.00008 $0.00076
Haiku 4.5 $0.00004 $0.00038

Measured 3mo ago against content hash c8260254150f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

price-history 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 3mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/history.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.

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/price-history/SKILL.md · 42 lines

What it actually says

Price History

Fetch historical OHLCV data from Yahoo Finance.

Instructions

Note: If uv is not installed or pyproject.toml is not found, replace uv run python with python in all commands below.

uv run python scripts/history.py SYMBOL [--period PERIOD] [--interval INTERVAL]

Arguments

  • SYMBOL - Ticker symbol
  • --period - Time period: 1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, ytd, max (default: 1mo)
  • --interval - Data interval: 1m, 2m, 5m, 15m, 30m, 60m, 90m, 1h, 1d, 5d, 1wk, 1mo (default: 1d)

Output

Returns JSON with:

  • symbol - Ticker
  • period - Requested period
  • interval - Data interval
  • data - Array of {date, open, high, low, close, volume}

Summarize key price movements, highs/lows, and trends.

Dependencies

  • yfinance

Timezone

All timestamps and time-based calculations must use the America/New_York timezone. All JSON output must include generated_at (NY time string) and data_delay fields.

Files

What ships with it

1 file 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 · 42 lines · 41 tokens per session scan A c8260254150f

Subscribe to this mod's changes

price-history is a skill published in the GitHub repository staskh/trading_skills (427 stars, last pushed today), licensed MIT. It adds 41 tokens to every session and 380 once invoked, about $0.0002 per session on Opus 5.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

price-history compared with skills from other repositories

price-history next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
price-historystaskh/trading_skillsSkill427todayMITA41Claude Code
find-cpa-firmnostrband/ServiceGraphSkill586mo agoMITA238Claude Code
nse-trading-toolkitBhala-Srinivash/nse-trading-skillsSkill749mo agoMITA165Claude Code, Codex
clawby-dataopenclawby/openclawby-skillsSkill925d agoMITC204Claude Code, Codex
fibonacci-tradingBhala-Srinivash/nse-trading-skillsSkill749mo agoMITA101Claude Code, Codex
multi-timeframe-analysisBhala-Srinivash/nse-trading-skillsSkill749mo agoMITA105Claude Code, Codex
position-sizingBhala-Srinivash/nse-trading-skillsSkill749mo agoMITA96Claude Code, Codex