{"uid":"cap_rSM3MS8TTrfEQ1K-InGfx","slug":"api-stocktrends-com-0c9d63aa","name":"Stock Trends Historical Weekly Indicator Series","description":"Historical weekly Stock Trends indicator series for a symbol. Stock Trends indicators are part of a multi-decade classification framework with records extending back to 1980. Their value comes from consistent semantics across market history: trend state, trend persistence, relative performance, relative performance direction, and volume activity are encoded in a stable doctrine designed for longitudinal research.","url":"https://api.stocktrends.com/v1/indicators/history?utm_source=zero.xyz","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 indicator history with trend classification, trend_cnt, mt_cnt, rsi, rsi_updn, vol_tag, price-change fields, moving averages, and high/low context.","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":{"limit":52,"symbol_exchange":"AAPL-Q"}}},"response":{"_truncated":true,"_originalSize":21184}},"exampleRequest":{"limit":52,"symbol_exchange":"AAPL-Q"},"tags":["x402"],"displayCostAmount":"0.01","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.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_9yhi14tUZEdfKVOsDtt8I","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 a historical sequence of weekly Stock Trends indicator values for a symbol, including trend state, persistence, maturity, relative performance, volume tags, and signal metadata.","exampleAgentPrompt":"Pull the Stock Trends weekly indicator history for AAPL on NASDAQ (symbol AAPL-Q) for the last 52 weeks — I want to see trend state, trend persistence counts, maturity counts, RSI, volume tags, and relative performance for each week.","exampleUseCases":[{"title":"Backtest trend-following strategy","prompt":"Get me the full Stock Trends weekly history for SPY going back to 2022 — I need trend codes, persistence counts, volume tags, and RSI values so I can test how well a trend-following system would have performed over that period."},{"title":"Chart trend maturity evolution","prompt":"Show me the Stock Trends indicator series for TSLA over the last 18 months, including how the maturity count evolved through each trend phase and what the relative performance direction was week by week."},{"title":"Research long-term doctrine patterns","prompt":"Pull the Stock Trends historical data for QQQ all the way back to 2015 — I'm studying how trend persistence and state classification have behaved across different market cycles in the tech space."}],"resultDescription":"A JSON array of weekly records for the requested symbol, each containing: trend classification code, trend_cnt (consecutive weeks in trend), mt_cnt (maturity count), RSI value, rsi_updn direction flag, vol_tag (volume activity tag), price-change metrics, moving average values, and weekly high/low context. Records span the requested date range up to the specified limit.","failureModes":["Missing or malformed symbol_exchange parameter (must match pattern ^[A-Z0-9.]+-[A-Z]$) returns a 400 error","Invalid exchange code not in enum [N,Q,A,B,T,I] returns a 400 validation error","Symbol not found or not covered by Stock Trends returns empty results or 404","Date range with no available data returns empty array","Limit exceeding maximum of 2600 returns a 400 error","Payment not provided or invalid x402 payment returns 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need the full longitudinal time series of Stock Trends indicator values for a symbol — ideal for backtesting, charting trend evolution, studying persistence and maturity dynamics, or building features for a model. Prefer this over the snapshot endpoint when historical context or trend sequencing is required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T06:30:26.187Z","isFirstParty":false,"canonicalSlug":"api-stocktrends-com-0c9d63aa"}