stock-quote
Scannednpx machina-cli add skill staskh/trading_skills/stock-quote --openclawStock Quote
Fetch current stock data from Yahoo Finance.
Instructions
Note: If
uvis not installed orpyproject.tomlis not found, replaceuv run pythonwithpythonin 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
- volume, avg_volume, market_cap
- high_52w, low_52w, pe_ratio, dividend_yield
Present the data in a readable format. Highlight significant moves (>2% change).
Dependencies
yfinance
Source
git clone https://github.com/staskh/trading_skills/blob/main/.claude/skills/stock-quote/SKILL.mdView on GitHub Overview
Stock-quote fetches real-time data from Yahoo Finance for a requested ticker. It returns price, change, volume, market cap, 52-week high/low, PE ratio, and dividend yield, enabling quick answers about current stock price and basic stock info.
How This Skill Works
The skill runs a Python script via uv with the ticker symbol to fetch data from Yahoo Finance using yfinance. It outputs a JSON object containing symbol, name, price, change, change_percent, volume, avg_volume, market_cap, high_52w, low_52w, pe_ratio, and dividend_yield, with significant moves (over 2%) highlighted.
When to Use It
- When a user asks for the current stock price or real-time quote for a ticker
- When comparing basic stock info like volume, market cap, or 52-week range
- When a user requests PE ratio or dividend yield for a stock
- When you need a quick snapshot of volatility via 52-week high/low
- When presenting a readable summary of a ticker's latest metrics
Quick Start
- Step 1: uv run python scripts/quote.py SYMBOL
- Step 2: Replace SYMBOL with the ticker (e.g., AAPL, MSFT)
- Step 3: Read the JSON output and present key metrics
Best Practices
- Verify ticker symbols (e.g., AAPL, MSFT, TSLA) before running the quote
- Note the price reflects real-time data and may vary intraday
- Use change and change_percent to assess momentum (>2% moves highlighted)
- Include 52-week high/low and market cap for context
- Present the JSON data in a readable format for quick consumption
Example Use Cases
- Ask for AAPL quote to see price, change, volume, and 52-week range
- Check MSFT's market_cap and PE ratio in a single query
- Pull TSLA's price and 2%+ movement to spot momentum
- Retrieve SPY's 52-week high/low and dividend_yield for a broad view
- Get MSFT's volume and average_volume for liquidity context