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-code

Installs into .claude/skills of the current project.

Files

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.

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

Recommended

More Debugging
1syahiidkamil avatarfree-willsyahiidkamil/software-engineer-ai-agent-atlasDeliberate-choice procedure for a medium-to-high-stakes engineering fork — when the first plausible solution (the instinct, the default next-token pull) would b0skills.sh installs
2syahiidkamil avatarshadcnsyahiidkamil/software-engineer-ai-agent-atlasManages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI. Provides project context, component docs, and usage ex0skills.sh installs
3syahiidkamil avatarskill-creatorsyahiidkamil/software-engineer-ai-agent-atlasCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an e0skills.sh installs
4telagod avataranalyzing-spreadsheetstelagod/code-abyssProcesses Excel spreadsheet files (.xlsx, .xlsm, .csv). Creates workbooks, builds formulas, preserves formatting, analyzes tabular data, and validates financial0skills.sh installs
5telagod avatarautomating-devopstelagod/code-abyssDevOps knowledge reference covering Git workflows, testing strategies, DevSecOps, release pipeline orchestration (release.yml, multi-arch images, cosign integra0skills.sh installs
6thinkinaixyz avatardeepchat-sddthinkinaixyz/deepchatUse for any DeepChat code, configuration, documentation, feature, issue fix, refactor, or architecture change before implementation. This skill enforces the pro0skills.sh installs