mcpField
P
price-history

price-history

github.com/staskhOther39493 installsUpdated 1d ago
Repository

About price-history

A command-line skill that fetches historical OHLCV data for a ticker from Yahoo Finance. It serves users reviewing price movements across selectable lookback periods and intervals, and returns records as JSON.

Key features

  1. 01Fetches historical OHLCV data
  2. 02Supports selectable periods and intervals
  3. 03Returns dated price and volume records
  4. 04Includes New York timestamps in JSON

Use cases

  1. 01Review a ticker's historical price trend
  2. 02Inspect daily or intraday price and volume data

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/staskh/trading_skills --skill price-history

After installing, type/price-historyin Claude Code to confirm it loaded.

Bundled filesscripts/history.py

Details

From the project README

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.

Comments

Markdown supported