All skills
staskh avatar

/price-history

@ef6e1c4
by staskhstaskh/trading_skills373 stars
85

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.

Use this Skill: https://skilld.dev/gh/staskh/trading_skills/price-history

This session only. Nothing lands on disk.

SKILL.md

≈47 tokens always: the name and description. ≈246 when used: this file.

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.

Source: SKILL.md on GitHub

No alerts12d5 checks · Risk SAFE
  • Gen Agent Trust Hub12d

    The price-history skill provides a CLI tool to fetch historical stock market data from Yahoo Finance. It uses standard Python libraries and clear instructional patterns without any detected security risks.

  • Socket12d

    No alerts

  • Snyk12d

    Risk: LOW · No issues

  • Runlayer7mo

    2 files scanned · No issues

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at ef6e1c4. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 days ago.

Activeupdated 5 months ago
dependencies
[
  "trading-skills"
]

README badge

README badge for staskh/trading_skills/price-history