Trading_skills price-history
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.
install
source · Clone the upstream repo
git clone https://github.com/staskh/trading_skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/staskh/trading_skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/.claude/skills/price-history" ~/.claude/skills/staskh-trading-skills-price-history && rm -rf "$T"
manifest:
.claude/skills/price-history/SKILL.mdsource content
Price History
Fetch historical OHLCV data from Yahoo Finance.
Instructions
Note: If
is not installed oruvis not found, replacepyproject.tomlwithuv run pythonin all commands below.python
uv run python scripts/history.py SYMBOL [--period PERIOD] [--interval INTERVAL]
Arguments
- Ticker symbolSYMBOL
- Time period: 1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, ytd, max (default: 1mo)--period
- Data interval: 1m, 2m, 5m, 15m, 30m, 60m, 90m, 1h, 1d, 5d, 1wk, 1mo (default: 1d)--interval
Output
Returns JSON with:
- Tickersymbol
- Requested periodperiod
- Data intervalinterval
- Array of {date, open, high, low, close, volume}data
Summarize key price movements, highs/lows, and trends.
Dependencies
yfinance