
Price History
Pulls OHLCV data from Yahoo Finance for any stock symbol with configurable periods and intervals. You get open, high, low, close, and volume in a JSON array, which is exactly what you need if someone asks to see how a stock performed over the last month or you want to feed data into a charting analysis. Supports everything from 1-minute intervals to monthly bars, and periods ranging from one day to max history. All timestamps come in New York time, which matters when you're dealing with market data. It's straightforward wrapper around yfinance, so you're getting whatever Yahoo Finance has, with the usual caveats about data quality and delays.
- GitHub stars
- 248
- last updated
- Jun 11, 2026
Install
$ npx -y skills add staskh/trading_skills --skill price-history --agent claude-codeInstalls into .claude/skills of the current project.
Files
Price History
Fetch historical OHLCV data from Yahoo Finance.
Instructions
Note: If
uvis not installed orpyproject.tomlis not found, replaceuv run pythonwithpythonin 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- Tickerperiod- Requested periodinterval- Data intervaldata- 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.
Sponsors
Details
- Repository
- github.com/staskh/trading_skills
- Categories
- Debugging, Finance & Trading
- License
- MIT
- First seen
- Jun 11, 2026
More from staskh/trading_skills
All 28- Scanner Bullish
- Scanner Pmcc
- Spread Analysis
- Whale Hunting
- Technical Analysis598
- News Sentiment246
- Fundamentals182
- Stock Quote131
- Greeks128
- Report Stock117
- Option Chain111
- Risk Assessment105
- Earnings Calendar
- Ib Account
- Ib Collar
- Ib Create Consolidated Report
- Ib Find Short Roll
- Ib Option Chain
- Ib Pmcc Advisor
- Ib Portfolio
- Ib Portfolio Action Report
- Ib Report Delta Adjusted Notional Exposure
- Ib Stop Loss
- Ib Trades History