{"uid":"cap_MEOtM9PmoRZ3GbOvrUTn8","slug":"api-stocktrends-com-09c1b975","name":"Stock Trends Market Regime Forecast","description":"Deterministic forward regime outlook derived from recent weekly regime score direction and consistency.","url":"https://api.stocktrends.com/v1/market/regime/forecast","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":{"lookback":{"type":"integer","default":5,"maximum":13,"minimum":2}},"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":"Deterministic regime outlook and confidence fields.","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":{"lookback":8}},"title":"Stock Trends Regime Forecast","family":"market_analysis","output":{"type":"json"},"category":"financial_data","description":"Retrieve deterministic forward regime outlook with 8-week lookback window"},"response":{"lookback":8,"weekdate":"2026-06-05","recent_scores":[-0.0302,-0.0342,-0.036,-0.0282,-0.0095,0.0012,0.0046,0.0117],"current_regime":"mixed","weeks_analyzed":8,"forecast_regime":"mixed","recent_direction":"stable","regime_consistency":1,"forecast_confidence":"moderate","current_regime_score":-0.0302,"avg_weekly_score_delta":-0.006,"projected_regime_score":-0.0362}},"exampleRequest":{"lookback":8},"tags":["x402"],"displayCostAmount":"0.35","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.35/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.35","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.35","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_SYiGZlb2G5VuCet_30t03","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.35","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a deterministic forward regime outlook derived from recent weekly regime score direction and consistency, with a configurable lookback window.","exampleAgentPrompt":"What's the Stock Trends regime forecast right now? Use a lookback of 8 weeks and tell me whether the outlook is bullish, bearish, or neutral and how confident the model is.","exampleUseCases":null,"resultDescription":"A deterministic regime forecast object including the projected forward regime classification, direction of recent regime score movement, consistency of that direction over the lookback window, and a confidence-related field — all derived from weekly regime score history.","failureModes":["lookback value below 2 or above 13 returns a 400 validation error","Missing or malformed query parameters cause a 422 unprocessable entity response","Payment not received or x402 flow not completed results in a 402 Payment Required","Upstream data unavailability may cause a 503 Service Unavailable","Requesting during a period of sparse weekly data may reduce forecast confidence"],"whenToPreferThis":"Use this endpoint when you need a forward-looking, deterministic market regime signal to inform portfolio positioning, risk management, or trading decisions — especially when combined with symbol-level Stock Trends signals. Prefer this over the current regime classification endpoint when you need predictive outlook rather than current state, and over ad-hoc trend analysis when you need a consistent, doctrine-based forecast with adjustable lookback sensitivity.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:51:14.747Z","isFirstParty":false}