A straightforward wrapper around Yahoo Finance for pulling current stock quotes. You pass it a ticker symbol and get back the essentials: price, volume, market cap, 52-week range, and percentage changes. The script outputs structured JSON that you can format however you want, and it flags notable moves above 2%. Everything runs in Eastern Time, which matters for market hours context. It's built on yfinance and works with uv or standard Python. Not fancy, just reliable stock data when someone asks "what's Apple trading at" or wants a quick snapshot of any publicly traded company.

skills.sh installs
131
GitHub stars
406
last updated
Jun 11, 2026

Install

$ npx -y skills add staskh/trading_skills --skill stock-quote --agent claude-code

Installs into .claude/skills of the current project.

Files

Stock Quote

Fetch current stock 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.

Run the quote script with the ticker symbol:

uv run python scripts/quote.py SYMBOL

Replace SYMBOL with the requested ticker (e.g., AAPL, MSFT, TSLA, SPY).

Output

The script outputs JSON with:

  • symbol, name, price, change, change_percent
  • as_of_session - the trading date price/change belong to (YYYY-MM-DD, from Yahoo's regular-session timestamp; null if Yahoo omits it)
  • market_open_now - whether the NYSE regular session is open right now
  • market_state - Yahoo's session state: PRE, REGULAR, POST, CLOSED (also PREPRE/POSTPOST)
  • pre_market, post_market - {price, change, change_percent, time} for extended-hours trading, or null. change is measured from the last regular close; time is the ET timestamp of that print
  • volume, avg_volume, market_cap
  • high_52w, low_52w, pe_ratio, forward_pe, dividend_yield, beta

Present the data in a readable format. Highlight significant moves (>2% change).

Sponsors

Details

Repository
github.com/staskh/trading_skills
Category
Finance & Trading
License
MIT
First seen
Jun 11, 2026

More from staskh/trading_skills

All 28
1NVIDIA avatarportfolio-optimizationNVIDIA/skillsUse when a user asks to build, optimize, backtest, rebalance, or analyze a stock portfolio with Mean-CVaR, Mean-Variance/SOCP variance caps, efficient frontiers124skills.sh installs
2staskh avatarreport-stockstaskh/trading_skillsStock ticker symbol(s) - single or space-separated list (e.g., AAPL or "AAPL MSFT GOOGL")117skills.sh installs
3bankrbot avatarBankr Agent - Token Tradingbankrbot/claude-pluginsThis skill should be used when the user asks to "buy crypto", "sell tokens", "swap ETH", "trade on Base", "exchange tokens", "cross-chain swap", "bridge tokens"0skills.sh installs
4claude-office-skills avatarInvoice Automationclaude-office-skills/skillsAutomate invoice generation, sending, tracking, and payment reconciliation across accounting platforms0skills.sh installs
5claude-office-skills avatarStripe Paymentsclaude-office-skills/skillsAutomate Stripe payment processing, subscription management, invoicing, and financial reporting0skills.sh installs
6binance avatarmargin-tradingbinance/binance-skills-hubBinance Margin-trading request using the Binance API. Authentication requires API key and secret key.1.9Kskills.sh installs