Skip to content
Back to skills

Price History

ASecurity

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.

  • 373 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added May 26, 2026
datapythonbashperformance

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned May 27, 2026

npx -y skills add staskh/trading_skills --skill price-history --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Price History?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Price History
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/staskh-price-history/badge)](https://www.skillsdirectory.com/skills/staskh-price-history)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Files in this skill

  • SKILL.md1.2 KB
  • scripts/history.py957 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.