stocks

Fetch stock quotes, price history, and crypto prices from Yahoo Finance.

Updated Sep 10, 2026
One-click install
npx skills add https://github.com/loteiron/ZeusAgent --skill stocks-loteiron
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: stocks
Source: https://github.com/loteiron/ZeusAgent/tree/main/optional-skills/finance/stocks
Command: npx skills add https://github.com/loteiron/ZeusAgent --skill stocks-loteiron

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve? Getting current market data usually requires paid APIs, API keys, or heavy libraries. This Skill retrieves stock quotes, ticker search, OHLCV history, side-by-side comparisons, and crypto prices using only the Python standard library and Yahoo Finance's public endpoints. ## Core Features & Use Cases - Real-Time Quotes: Get current price, change, volume, and 52-week high/low for one or more tickers like AAPL, MSFT, or TSLA. - History & Comparison: Pull daily OHLCV data over ranges from 1 month to 5 years with computed stats, or compare multiple tickers side by side. - Crypto Prices: Query crypto prices such as BTC, ETH, and SOL with automatic -USD suffix handling. - Use Case: A user asks "How did NVDA perform over the last 6 months?" The agent runs the history command and returns JSON with daily prices, min, max, average, and total return percentage. ## Quick Start Ask the agent to get the current stock quote for AAPL using the stocks skill.

Frequently Asked Questions about stocks

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I get a stock quote from the command line in Python?▼

Run the stocks_client.py script with the quote command followed by one or more ticker symbols, such as python stocks_client.py quote AAPL MSFT. It returns JSON with price, change, volume, and 52-week high/low from Yahoo Finance.

How to fetch historical stock prices without an API key?▼

Use the history command with a symbol and a range flag like --range 6mo. The script queries Yahoo Finance's unofficial chart endpoint and returns daily OHLCV data plus min, max, average, and total return statistics.

Does this stock quote tool require installing Python packages?▼

No external packages are required. The script uses only the Python 3.8+ standard library, including urllib and json, so there is nothing to install via pip and no mandatory API key.

Why do market cap and PE ratio return null for some quotes?▼

Yahoo Finance protects those fields behind a crumb session that sometimes fails to establish. Set the ALPHA_VANTAGE_KEY environment variable to backfill market cap, PE ratio, and 52-week levels from Alpha Vantage.

Can I check crypto prices like Bitcoin with this tool?▼

Yes, use the crypto command with a symbol like BTC or ETH. The script automatically appends -USD to the ticker, and you can change the quote currency with the --vs flag, for example --vs EUR.

What are the limitations of using Yahoo Finance for market data?▼

Yahoo's endpoints are unofficial and can rate-limit or change without notice, causing requests to fail. The tool is read-only with no order placement or account integration, and bulk requests should include small delays.