{"uid":"cap_cq_NEmfhHtthl2_Pr30cm","slug":"financial-data-x402-stock-price-history-c5618b41","name":"Financial Data x402 – Stock Price History","description":"Pay-per-call stock, macro, on-chain, and crypto data over the x402 protocol. USDC on Base or Solana, no API keys, no subscriptions.","url":"https://x402-stock-indicators.vercel.app/history/%7Bticker%7D","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","HEAD","DELETE"],"type":"string"},"pathParams":{"type":"object","required":["ticker"],"properties":{"ticker":{"type":"string","description":"Stock ticker symbol, e.g. AAPL, TSLA, MSFT"}}},"queryParams":{"type":"object","required":["multiplier","timespan","from","to"],"properties":{"to":{"type":"string","format":"date","description":"End date, e.g. 2026-07-01"},"from":{"type":"string","format":"date","description":"Start date, e.g. 2026-01-01"},"timespan":{"enum":["minute","hour","day","week","month"],"type":"string"},"multiplier":{"type":"integer","description":"Bar size multiplier. Supported per timespan: minute(1,2,5,15,30,60,90), hour(1), day(1,5), week(1), month(1,3)."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"to":"2026-07-10","bars":[{"c":294.38,"h":296.59,"l":289.2,"o":293.44,"t":"2026-07-01T00:00:00-04:00","v":50164200},{"c":308.63,"h":309.42,"l":293.68,"o":294.12,"t":"2026-07-02T00:00:00-04:00","v":75352800}],"from":"2026-07-01","ticker":"AAPL","interval":"1d","timespan":"day","bar_count":2,"truncated":false,"multiplier":1}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_CqzORMnjsf_ixBOEGlzGh","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns OHLCV (open, high, low, close, volume) price bar history for a stock ticker over a specified date range and timespan granularity, paid per-call via USDC over the x402 protocol.","exampleAgentPrompt":"Pull the daily price bars for AAPL from January 1 2026 to July 1 2026 — I need the open, high, low, close, and volume for each day.","exampleUseCases":[{"title":"Backtesting a trading strategy","prompt":"Get me the daily OHLCV history for NVDA from January 1 2025 to June 30 2025 so I can backtest a moving average crossover strategy."},{"title":"Portfolio performance review","prompt":"Fetch monthly closing price bars for MSFT from July 2025 to July 2026 — I want to see how the stock trended over the past year."},{"title":"Intraday volatility analysis","prompt":"Pull 15-minute bars for TSLA from July 7 2026 to July 10 2026 so I can analyze intraday price swings across those sessions."}],"resultDescription":"A JSON object containing the ticker symbol, requested date range, timespan and multiplier (interval), an array of OHLCV bars each with open, high, low, close, volume, and timestamp, plus the total bar count and a truncated flag indicating whether the result was capped.","failureModes":["Invalid or unrecognized ticker symbol returns an error or empty bar array","Date range outside available data returns zero bars or a truncated result","Unsupported multiplier for a given timespan returns a validation error","Payment failure or insufficient USDC balance causes a 402 Payment Required response","Future dates or weekend-only ranges return no trading data","Malformed date format causes a 400 Bad Request"],"whenToPreferThis":"Choose this endpoint when you need structured OHLCV candlestick history for US equities across flexible timespans (minute through month) without committing to a subscription or managing API keys — ideal for per-call agent workflows, backtesting pipelines, or one-off research queries paid with USDC on Base or Solana via x402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:39:43.645Z","isFirstParty":false}