{"uid":"cap_0Lw1uJJ6M8wdKGUUQ2ook","slug":"stooq-historical-stock-prices-a59687d8","name":"Stooq Historical Stock Prices","description":"Daily historical prices for a US stock, ETF or index: date, open, high, low, close and volume, newest first, for any date range up to 10 years back (max 1,000 rows per call). Data from Nasdaq.com's public historical quotes API (Stooq blocks automated downloads).","url":"https://api.chainmarket-api.workers.dev/api/finance/stooq-historical-stocks?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":{"to":{"type":"string","description":"End date YYYY-MM-DD (default today)"},"from":{"type":"string","description":"Start date YYYY-MM-DD (default 30 days ago)"},"limit":{"type":"string","description":"Rows, 1 to 1000 (default 100)"},"symbol":{"type":"string","description":"US ticker, e.g. AAPL, SPY"},"assetClass":{"type":"string","description":"stock (default), etf or index"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"to":"2026-10-20","from":"2026-10-01","prices":[{"low":338.7,"date":"2026-10-20","high":343.06,"open":339.86,"close":339.5,"volume":35851380},{"low":340.115,"date":"2026-10-19","high":346,"open":340.775,"close":342.94,"volume":34573180}],"source":"https://www.nasdaq.com/market-activity/stocks/aapl/historical","symbol":"AAPL","checkedAt":"2026-10-23T09:36:11.085Z","totalRecords":14}},"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_g_dJ9LAlzTysuHhMSHHy2","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 historical OHLCV (open, high, low, close, volume) price data for US stocks, ETFs, or indexes from Stooq via a pay-per-call API requiring no signup.","exampleAgentPrompt":"Pull the daily OHLCV price history for AAPL stock from October 1st to October 20th 2026, up to 50 rows.","exampleUseCases":[{"title":"Backtest a trading strategy","prompt":"Get me the daily open, high, low, close, and volume data for SPY from January 1st to June 30th 2025, up to 500 rows, so I can run a moving average backtest."},{"title":"Analyze recent stock performance","prompt":"Fetch the last 30 days of historical price data for MSFT stock so I can see how it's been trending recently."},{"title":"Compare ETF historical returns","prompt":"Pull the historical daily prices for QQQ ETF from March 1st to May 31st 2025 — make sure to set the asset class to etf."}],"resultDescription":"A JSON object containing the ticker symbol, date range queried, a list of daily price records (each with date, open, high, low, close, and volume), the total number of records returned, a link to the source (e.g. Nasdaq historical page), and a checkedAt timestamp.","failureModes":["Invalid or unrecognized ticker symbol returns no data or an error","Date range outside available history returns empty prices array","Limit exceeds 1000 is clamped or rejected","Missing required symbol parameter returns a validation error","Payment failure (x402) results in no charge and no data returned","Network or upstream Stooq outage may cause temporary unavailability"],"whenToPreferThis":"Choose this endpoint when you need daily historical OHLCV price data for US-listed stocks, ETFs, or market indexes without requiring an API key or subscription. It is ideal for pay-per-call agent workflows, backtesting, charting, or performance analysis where you need flexible date ranges and row limits. Prefer alternatives if you need real-time tick data, intraday data, options data, or non-US market coverage.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-24T12:36:11.997Z","isFirstParty":false,"canonicalSlug":"stooq-historical-stock-prices-a59687d8"}