{"uid":"cap_4Tef3P5--hpaD_E2EL59z","slug":"api-stocktrends-com-63ff4be9","name":"Stock Trends Historical Weekly Price Series","description":"Historical weekly price series for a Stock Trends symbol.","url":"https://api.stocktrends.com/v1/prices/history","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_exchange"],"properties":{"end":{"type":"string","format":"date"},"limit":{"type":"integer","default":260,"maximum":2600,"minimum":1},"start":{"type":"string","format":"date"},"symbol":{"type":"string"},"cs_only":{"type":"boolean","default":true},"exchange":{"enum":["N","Q","A","B","T","I"],"type":"string"},"symbol_exchange":{"type":"string","pattern":"^[A-Z0-9.]+-[A-Z]$"}},"additionalProperties":false}},"additionalProperties":false},"title":{"type":"string"},"family":{"type":"string"},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"format":{"type":"string"},"example":{}},"description":"Weekly price history for one symbol.","additionalProperties":true},"category":{"type":"string"},"schemaUrl":{"type":"string"},"description":{"type":"string"},"metadataUrl":{"type":"string"},"tools_manifest":{"type":"string"},"pricing_catalog":{"type":"string"}},"additionalProperties":true},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"end":"2024-12-31","limit":260,"start":"2020-01-01","cs_only":true,"symbol_exchange":"AAPL-Q"}}},"response":{"_truncated":true,"_originalSize":65218}},"exampleRequest":{"end":"2024-12-31","limit":260,"start":"2020-01-01","cs_only":true,"symbol_exchange":"AAPL-Q"},"tags":["x402"],"displayCostAmount":"0.0075","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.0075/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0075","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0075","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ckFDRAgJs7bkV0Hv2mhAX","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0075","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns historical weekly OHLCV price data for a given Stock Trends symbol and exchange.","exampleAgentPrompt":"Pull the Stock Trends weekly price history for AAPL on NASDAQ (symbol AAPL-Q) from January 1 2020 to December 31 2024, up to 260 weeks.","exampleUseCases":null,"resultDescription":"A JSON array of weekly price records for the requested symbol, each containing date, open, high, low, close, and volume fields covering the specified date range and record limit.","failureModes":["Invalid symbol_exchange format (must match ^[A-Z0-9.]+-[A-Z]$) returns 400","Unknown symbol or exchange combination returns 404 or empty result","limit exceeds maximum of 2600 returns 400","Invalid date format for start/end returns 400","Payment not provided or insufficient returns 402","Rate limit exceeded returns 429"],"whenToPreferThis":"Use this endpoint when you need raw historical weekly price data (OHLCV) for a specific Stock Trends symbol, particularly as a foundation for backtesting, charting, or combining with Stock Trends indicator series. Prefer this over the indicator history endpoint when you need price data alone without trend classification metadata.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:47:28.698Z","isFirstParty":false}