{"uid":"cap_lz3ZFRMdNJ4cF5QgZzUtI","slug":"api-stocktrends-com-bc85903b","name":"Stock Trends Market Regime History","description":"Historical sequence of weekly market regime classifications.","url":"https://api.stocktrends.com/v1/market/regime/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":[],"properties":{"limit":{"type":"integer","default":12,"maximum":52,"minimum":1},"start_date":{"type":"string","format":"date"}},"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":"Recent weekly market regime sequence.","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":20,"start":"2024-01-01"}}},"response":{"count":20,"limit":20,"history":[{"regime":"mixed","avg_rsi":90.26,"weekdate":"2026-06-05","avg_mt_cnt":28.84,"confidence":"low","bearish_pct":0.4385,"bullish_pct":0.4083,"regime_score":-0.0302,"signal_count":8614},{"regime":"mixed","avg_rsi":91.96,"weekdate":"2026-05-29","avg_mt_cnt":29.04,"confidence":"low","bearish_pct":0.4438,"bullish_pct":0.4096,"regime_score":-0.0342,"signal_count":8542},{"regime":"mixed","avg_rsi":90.85,"weekdate":"2026-05-22","avg_mt_cnt":29.03,"confidence":"low","bearish_pct":0.4457,"bullish_pct":0.4097,"regime_score":-0.036,"signal_count":8523},{"regime":"mixed","avg_rsi":90.16,"weekdate":"2026-05-15","avg_mt_cnt":28.98,"confidence":"low","bearish_pct":0.4422,"bullish_pct":0.414,"regime_score":-0.0282,"signal_count":8501},{"regime":"mixed","avg_rsi":92.52,"weekdate":"2026-05-08","avg_mt_cnt":29.06,"confidence":"low","bearish_pct":0.4345,"bullish_pct":0.4251,"regime_score":-0.0094,"signal_count":8464},{"regime":"mixed","avg_rsi":93.33,"weekdate":"2026-05-01","avg_mt_cnt":29.06,"confidence":"low","bearish_pct":0.4324,"bullish_pct":0.4336,"regime_score":0.0012,"signal_count":8405},{"regime":"mixed","avg_rsi":90.44,"weekdate":"2026-04-24","avg_mt_cnt":28.95,"confidence":"low","bearish_pct":0.4316,"bullish_pct":0.4363,"regime_score":0.0047,"signal_count":8394},{"regime":"mixed","avg_rsi":92.13,"weekdate":"2026-04-17","avg_mt_cnt":28.8,"confidence":"low","bearish_pct":0.4284,"bullish_pct":0.4401,"regime_score":0.0117,"signal_count":8370},{"regime":"mixed","avg_rsi":93.38,"weekdate":"2026-04-10","avg_mt_cnt":28.55,"confidence":"low","bearish_pct":0.4241,"bullish_pct":0.4455,"regime_score":0.0214,"signal_count":8356},{"regime":"mixed","avg_rsi":96.01,"weekdate":"2026-04-03","avg_mt_cnt":28.36,"confidence":"low","bearish_pct":0.4161,"bullish_pct":0.4556,"regime_score":0.0395,"signal_count":8339},{"regime":"mixed","avg_rsi":97.41,"weekdate":"2026-03-27","avg_mt_cnt":28.5,"confidence":"low","bearish_pct":0.4058,"bullish_pct":0.4683,"regime_score":0.0625,"signal_count":8326},{"regime":"bullish","avg_rsi":94.85,"weekdate":"2026-03-20","avg_mt_cnt":28.68,"confidence":"moderate","bearish_pct":0.3864,"bullish_pct":0.4884,"regime_score":0.102,"signal_count":8298},{"regime":"bullish","avg_rsi":93.21,"weekdate":"2026-03-13","avg_mt_cnt":28.84,"confidence":"moderate","bearish_pct":0.3707,"bullish_pct":0.5047,"regime_score":0.134,"signal_count":8294},{"regime":"bullish","avg_rsi":94.72,"weekdate":"2026-03-06","avg_mt_cnt":28.72,"confidence":"moderate","bearish_pct":0.3633,"bullish_pct":0.513,"regime_score":0.1497,"signal_count":8276},{"regime":"bullish","avg_rsi":94.61,"weekdate":"2026-02-27","avg_mt_cnt":28.5,"confidence":"moderate","bearish_pct":0.3556,"bullish_pct":0.5206,"regime_score":0.165,"signal_count":8271},{"regime":"bullish","avg_rsi":95.46,"weekdate":"2026-02-20","avg_mt_cnt":28.28,"confidence":"moderate","bearish_pct":0.3547,"bullish_pct":0.5246,"regime_score":0.1699,"signal_count":8235},{"regime":"bullish","avg_rsi":95.37,"weekdate":"2026-02-13","avg_mt_cnt":28.12,"confidence":"moderate","bearish_pct":0.3588,"bullish_pct":0.5221,"regime_score":0.1633,"signal_count":8218},{"regime":"bullish","avg_rsi":94.8,"weekdate":"2026-02-06","avg_mt_cnt":27.95,"confidence":"moderate","bearish_pct":0.3605,"bullish_pct":0.5219,"regime_score":0.1614,"signal_count":8199},{"regime":"bullish","avg_rsi":94.29,"weekdate":"2026-01-30","avg_mt_cnt":27.93,"confidence":"moderate","bearish_pct":0.361,"bullish_pct":0.5245,"regime_score":0.1635,"signal_count":8181},{"regime":"bullish","avg_rsi":94.24,"weekdate":"2026-01-23","avg_mt_cnt":27.76,"confidence":"moderate","bearish_pct":0.3579,"bullish_pct":0.5295,"regime_score":0.1716,"signal_count":8147}],"start_date":null}},"exampleRequest":{"limit":20,"start":"2024-01-01"},"tags":["x402"],"displayCostAmount":"0.25","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.25/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.25","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.25","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_02hTdFA1T-UiPpLNUM1Mw","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.25","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 market regime classifications using the Stock Trends framework","exampleAgentPrompt":"Pull me the last 20 weeks of Stock Trends weekly market regime classification history starting from 2024-01-01 so I can see how market conditions have shifted over time.","exampleUseCases":[{"title":"Backtest strategy performance across market regimes","prompt":"Get me the historical weekly market regime data for the past year so I can test how my trading strategy would have performed in bull versus bear market conditions."},{"title":"Analyze trend reversals in regime shifts","prompt":"Show me the last 15 weeks of market regime classifications so I can identify when we transitioned from bear to bull and what that looked like in the data."},{"title":"Monitor regime consistency for portfolio rebalancing","prompt":"Pull the weekly market regime history for the last 6 months so I can see if we're in a sustained bull market or if there have been regime changes that warrant adjusting my portfolio allocation."}],"resultDescription":"A time-ordered sequence of weekly market regime classification records, each indicating the regime state (e.g. bull, bear, neutral) as determined by the distribution of Stock Trends trend codes across the market for that week. Returns up to 52 weeks of data depending on the limit parameter.","failureModes":["Invalid or future start date returns a 400 error","Limit outside 1-52 range returns a validation error","Start date too far in the past may return fewer records than requested","Service unavailable returns a 5xx error","Payment not processed returns a 402 error"],"whenToPreferThis":"Use this endpoint when you need a multi-week historical view of market regime classifications for backtesting, longitudinal analysis, or trend context. Prefer this over the current regime endpoint when you need time-series data rather than a single snapshot, and over individual symbol endpoints when your focus is broad market conditions rather than stock-specific signals.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:41:58.568Z","isFirstParty":false}