{"uid":"cap_ch_84Y9tts6UCE_1X13gr","slug":"yahoo-finance-stock-crypto-price-history-dc062ace","name":"Yahoo Finance Stock & Crypto Price History","description":"Yahoo Finance quote and daily history for one ticker (stocks, ETFs, indices, FX, crypto symbols) from Yahoo's public chart endpoint. Prices are delayed or end-of-day per Yahoo; no fundamentals or company lists are included.","url":"https://api.chainmarket-api.workers.dev/api/finance/yahoo-finance?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["symbol"],"properties":{"range":{"type":"string","description":"History range: 1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, ytd, max (default 5d)"},"symbol":{"type":"string","description":"Yahoo ticker, e.g. AAPL, MSFT, ^GSPC, EURUSD=X, BTC-USD"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"name":"Apple Inc.","price":348.22,"range":"5d","change":6.22,"dayLow":342.28,"source":"https://query1.finance.yahoo.com/v8/finance/chart/","symbol":"AAPL","volume":46845411,"dayHigh":348.36,"history":[{"low":340.46,"date":"2026-10-16","high":347.82,"open":346.09,"close":343.46,"volume":59946400},{"low":340.12,"date":"2026-10-19","high":346,"open":340.78,"close":342.94,"volume":34573200}],"currency":"USD","exchange":"NasdaqGS","checkedAt":"2026-10-23T09:36:10.621Z","marketTime":"2026-10-22T20:00:01.000Z","changePercent":1.8187,"previousClose":342,"fiftyTwoWeekLow":243.42,"fiftyTwoWeekHigh":348.36}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_SWCHIHQ-Yga4NUwBLHbIk","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches current price, key stats, and historical OHLCV data for any Yahoo Finance ticker (stocks, ETFs, indices, forex, crypto) over a configurable time range","exampleAgentPrompt":"What's the current price of Tesla (TSLA) and can you show me its price history over the last month, including daily highs, lows, and volume?","exampleUseCases":[{"title":"Real-time crypto price check","prompt":"What's the current price of Bitcoin in USD right now, and how much has it changed today?"},{"title":"Stock portfolio performance review","prompt":"Pull up Apple's stock price history for the past year — I want to see the daily open, close, high, low, and volume so I can see how it's been trending."},{"title":"Forex rate historical lookup","prompt":"Get me the EUR/USD exchange rate history for the last 3 months so I can see how the dollar has moved against the euro."}],"resultDescription":"A JSON object containing the security's current price, day high/low, volume, price change and percent change, previous close, 52-week high/low, currency, exchange name, market timestamp, and an array of historical daily OHLCV bars (date, open, high, low, close, volume) for the requested range. Also includes the source URL and the time the data was checked.","failureModes":["Invalid or unknown ticker symbol returns an error or empty result","Unsupported range value returns a validation error","Yahoo Finance API rate limiting or downtime causes upstream failure","Delisted or non-tradable symbols may return no data","Crypto tickers must use Yahoo format (e.g. BTC-USD, not BTC)"],"whenToPreferThis":"Use this endpoint when you need current price quotes or historical OHLCV data for any asset class covered by Yahoo Finance — stocks, ETFs, indices (e.g. ^GSPC), forex pairs (e.g. EURUSD=X), or crypto (e.g. BTC-USD) — without needing an API key or signup. Ideal for pay-per-call agent workflows where you only pay when data is successfully returned. Prefer this over dedicated crypto-only APIs when you need cross-asset-class coverage in a single interface.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-24T12:46:33.146Z","isFirstParty":false,"canonicalSlug":"yahoo-finance-stock-crypto-price-history-dc062ace"}