- Home
- Skills
- Trading & Investing
- Yahoo Finance Data API
Yahoo Finance Data API
Technical reference for Yahoo Finance public endpoints covering OHLC charts, symbol search, and sparkline data.
$9
Yahoo Finance Data API
Example session with this skill installed
Get the last 5 days of OHLC data for BTC-USD and find the ticker symbol for NVIDIA.
- Read your context and instructions
- Compiled the yahoo finance data
I have retrieved the OHLC data for BTC-USD and located the ticker for NVIDIA.
Yahoo Finance Data Retrieval
| Task | Endpoint | Parameters | Result/Status |
|---|---|---|---|
| Symbol Search | /v1/finance/search | q=NVIDIA, quotesCount=1 | Found: NVDA (NASDAQ) |
| Chart Data | /v8/finance/chart/BTC-USD | range=5d, interval=1d | 5 Days OHLCV Retrieved |
BTC-USD 5-Day Historical (Close)
{
"symbol": "BTC-USD",
"currency": "USD",
"timestamp": [1715212800, 1715299200, 1715385600, 1715472000, 1715558400],
"indicators": {
"quote": [{
"close": [63050.22, 62915.10, 60792.55, 61280.12, 62150.45],
"volume": [25234500000, 22105000000, 28450000000, 21500000000, 19850000000]
}]
}
}
Next steps
- Cache the
NVDAsymbol mapping for 5 minutes to avoid redundant searches. - Normalize the
BTC-USDtimestamps from Unix seconds to your local ISO format. - Call
/v1/sparkif you need a lighter weight payload for multiple crypto pairs.
Connects securely to your tools. The creator never sees your data.
About this skill
Financial data integration is often brittle due to undocumented endpoints and aggressive rate limiting. This skill provides a precise technical map for interfacing with Yahoo Finance's unofficial public API endpoints for equities, ETFs, and crypto pairs.
What it does
- OHLCV Retrieval fetches time-series quote data including Open, High, Low, Close, and Volume for specific symbols.
- Symbol Discovery queries the search endpoint to resolve ticker symbols and related news items.
- Sparkline Generation pulls lightweight close-price data for single or multiple symbols simultaneously.
- Parametric Filtering provides the correct query parameters for ranges and intervals to avoid truncated responses.
- Cache Management implements upstream TTL logic to minimize redundant network calls.
How it works
- Identify the asset by using the search endpoint to find the exact ticker symbol for a stock or crypto pair.
- Select the data granularity by defining the range and interval parameters for the chart or spark endpoints.
- Execute the request via the public query1.finance.yahoo.com gateway using the provided URI structures.
- Process the response by handling the upstream API's native JSON format and checking for empty data arrays.
Frameworks & tools
Uses standard HTTP/REST patterns compatible with curl, fetch, axios, or any backend language. Targets the Yahoo Finance v1 and v8 query APIs.
Why this beats prompting it yourself
Generic LLMs often hallucinate endpoint paths or forget required query parameters like quotesCount. This skill ensures the agent uses stable, tested URI patterns and respects specific 5-minute cache TTLs to avoid 429 rate-limit blocks.
Use cases
- Build market monitoring dashboards with real-time price sparklines.
- Extract historical OHLCV data for technical analysis or backtesting.
- Map company names to ticker symbols for automated portfolio tracking.
- Retrieve recent financial news linked to specific market tickers.
Known limitations
Coverage is restricted to data exposed by the unofficial public API. Responses require normalization for cross-source comparison and may vary by jurisdiction.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 5 days ago
Permissions
What's inside
Frequently Asked Questions
New in Trading & Investing
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Trading & Investing.