{"uid":"cap_EjQSUiSwpARDP0f6l69Il","slug":"alphalens-stock-history-api-a3037c0e","name":"AlphaLens Stock History API","description":"AI-powered stock analysis, technical indicators, sentiment scoring, and portfolio risk. 11 endpoints. Pay per request via x402 on Base chain.","url":"https://alphacook.vercel.app/api/history","method":"POST","headers":{},"bodySchema":{"type":"object","required":["symbol"],"properties":{"symbol":{"type":"string","description":"symbol"}}},"responseSchema":{"type":"object","required":["success"],"properties":{"data":{"type":"object"},"success":{"type":"boolean"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ysNRYuzgVAkjYB6EK8dVb","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Retrieves historical price and trading data for a given stock symbol","exampleAgentPrompt":"Can you pull up the historical price data for NVDA so I can see how it's been trading?","exampleUseCases":[{"title":"Backtest trading strategy on tech stocks","prompt":"I want to test my trading strategy on Apple and Microsoft over the last two years. Can you pull their historical price data so I can run the backtest?"},{"title":"Analyze portfolio performance trends","prompt":"Show me the historical trading data for my top five holdings—Tesla, Amazon, Google, Meta, and Microsoft. I need to see how they've performed over the past year to evaluate my portfolio."},{"title":"Compare competitor stock movements","prompt":"Pull up the historical price data for Netflix and Disney over the last six months. I want to compare how their stock prices moved relative to each other during that period."}],"resultDescription":"Returns a success boolean and a data object containing historical price and trading information for the requested stock symbol, such as OHLCV (open, high, low, close, volume) records over time.","failureModes":["Invalid or unknown stock symbol returns error or empty data","Missing required 'symbol' field returns validation error","Network timeout or upstream data provider unavailable","Payment failure via x402 results in 402 response before data is returned","Symbol for delisted or non-existent stock may return empty history"],"whenToPreferThis":"Use this endpoint when you need historical price or trading data for a specific stock ticker, especially for backtesting, charting, or trend analysis. Prefer this over real-time quote endpoints when you need past performance data rather than current prices.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:42:12.098Z","isFirstParty":false}