{"uid":"cap_9Rg3-lKF2Blr1J9oL-mbI","slug":"financial-data-x402-stock-price-history-6a9f02ab","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://x402financialdata.com/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_0kkWIDFLStQBcF-G5HKua","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 bars for a stock ticker over a user-specified date range and time interval, paid per-call via USDC over x402.","exampleAgentPrompt":"Can you pull daily OHLCV price bars for AAPL from January 1, 2026 to July 10, 2026, with a multiplier of 1?","exampleUseCases":[{"title":"Backtest a moving average strategy","prompt":"Get me daily price bars for TSLA from January 1, 2025 through June 30, 2025 — I want to backtest a 50-day moving average crossover strategy."},{"title":"Portfolio performance review","prompt":"Pull weekly closing price data for MSFT from 2026-01-01 to 2026-06-30 so I can chart how it performed over the first half of the year."},{"title":"Intraday volatility analysis","prompt":"Fetch 15-minute OHLCV bars for NVDA on a single trading day — let's say from 2026-07-01 to 2026-07-02 — so I can analyze intraday price swings."}],"resultDescription":"A JSON object containing an array of OHLCV bars (open, high, low, close, volume, timestamp) for the requested ticker and date range, along with metadata such as ticker symbol, from/to dates, timespan label, bar interval string, bar count, and a truncated flag indicating whether the result was cut short.","failureModes":["Invalid or unrecognized ticker symbol — returns error or empty bars array","Date range with no trading data (e.g. weekend-only range for a non-crypto ticker) — may return empty bars","Unsupported multiplier for a given timespan (e.g. multiplier=2 for hour) — likely returns error","Payment failure or insufficient USDC balance — x402 protocol returns 402 Payment Required","from date after to date — likely returns validation error or empty result","Request for a future date range — returns no bars or error"],"whenToPreferThis":"Choose this endpoint when you need historical OHLCV bar data for US-listed equities and want to avoid API key registration or monthly subscriptions. It is ideal for pay-as-you-go agent workflows, backtesting, or ad-hoc financial analysis where you pay $0.01 USDC per call. Prefer it over traditional data providers when operating in a crypto-native or x402-enabled agent environment on Base or Solana.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-12T06:30:25.513Z","isFirstParty":false}