price-history — Claude Code skill: what it does, how to install
The price-history Claude Code skill fetches historical OHLCV data for a stock. It activates for requests about past prices or data for chart analysis.
MIT 102 installs ★ 417 updated 2026-10-21
npx skills add staskh/trading_skills --skill price-history -a claude-codeWhat price-history does
The skill retrieves historical OHLCV records from Yahoo Finance for a ticker symbol. Its scripts/history.py script returns JSON with dates, opening and closing prices, highs, lows, and volume. The requested period and data interval can be set as arguments.
The trading-skills dependency and the yfinance library are required. The command runs through uv run python; use python instead if uv is missing or the project has no pyproject.toml. Time-based calculations and timestamps use America/New_York. The JSON output also carries generated_at and data_delay fields.
What it helps with
- fetch historical quotes for a stock ticker
- compare a stock’s highs and lows over a period
- get OHLCV records for chart analysis
Example prompts for the agent
- Fetch a month of historical prices for
AAPL. - Get
MSFTprice data for1ywith a1wkinterval. - Retrieve historical
TSLAdata for chart analysis.
How to install price-history
1Skills CLI (Vercel)
npx skills add staskh/trading_skills --skill price-history -a claude-code2Manually: put the files in place
~/.claude/skills/price-history/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/price-history/
1Skills CLI (Vercel)
npx skills add staskh/trading_skills --skill price-history -a codex2Manually: put the files in place
.agents/skills/price-history/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add staskh/trading_skills --skill price-history -a cursor2Manually: put the files in place
.cursor/skills/price-history/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install staskh/trading_skills .claude/skills/price-history2Manually: put the files in place
.github/skills/price-history/SKILL.md1Skills CLI (Vercel)
npx skills add staskh/trading_skills --skill price-history -a gemini-cli2Platform CLI
gemini skills install https://github.com/staskh/trading_skills --path .claude/skills/price-historyManually: put the files in place
.devin/skills/price-history/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add staskh/trading_skills --skill price-history -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about price-history
How do I install price-history in Claude Code?
Run npx skills add staskh/trading_skills --skill price-history -a claude-code. The skill file is at ~/.claude/skills/price-history/SKILL.md.
What does price-history do?
It fetches historical OHLCV data for a stock from Yahoo Finance and returns it as JSON. The period and interval are configurable.
What does price-history need to run?
It requires the trading-skills dependency and the yfinance library. The script uses uv run python; switch to python if uv is unavailable or pyproject.toml is missing.
Source text
SKILL.md · MIT
---
name: price-history
description: Get historical price data (OHLCV) for a stock. Use when user asks about price history, historical data, past performance, price over time, or needs data for chart analysis.
dependencies: ["trading-skills"]
---
# 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.
```bash
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.
© staskh · MIT · staskh/trading_skills