{"uid":"cap_oFklEHR4YRgtM5BfKrlFr","slug":"alphalens-stock-history-api-1a011fff","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://alphencook.vercel.app/api/history?utm_source=zero.xyz","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":"registry","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_q_y_yLiOrwNqVqMA0pYdc","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":"Pull the historical price data for AAPL using AlphaLens so I can see how the stock has traded over time.","exampleUseCases":[{"title":"Backtesting a trading strategy","prompt":"Get me the full price history for TSLA so I can backtest my moving average crossover strategy against real historical data."},{"title":"Tracking long-term stock performance","prompt":"Fetch the historical trading data for NVDA — I want to see how the stock has moved over the past few years to evaluate its growth trajectory."},{"title":"Comparing stock histories for analysis","prompt":"Pull the historical price data for MSFT so I can compare it against the S&P 500 performance over the same period."}],"resultDescription":"Returns a success flag and a data object containing historical price and trading information for the requested stock symbol, likely including OHLCV (open, high, low, close, volume) records over time.","failureModes":["Invalid or unrecognized stock symbol returns failure or empty data","Missing required 'symbol' field causes request validation error","Network or upstream data provider outage returns 500-level error","Delisted or obscure ticker symbols may return no historical data","Payment failure on Base chain blocks the request before processing"],"whenToPreferThis":"Choose this endpoint when you need historical price or trading data for a specific stock ticker and want a pay-per-use model billed in USDC on Base chain with no subscription required. It fits best in agentic workflows that need on-demand stock history without committing to a recurring data subscription.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T12:40:05.493Z","isFirstParty":false,"canonicalSlug":"alphalens-stock-history-api-1a011fff"}