# Stock Trends Market Regime Forecast

> Stock Trends Market Regime Forecast is a paid API for AI agents from api.stocktrends.com, paid per call via x402, $0.35/call, status unknown (last checked 2026-09-15).

Returns a deterministic forward regime outlook derived from recent weekly regime score direction and consistency, with a configurable lookback window.

## Facts

- Endpoint: GET https://api.stocktrends.com/v1/market/regime/forecast
- Price: $0.35/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-stocktrends-com-09c1b975
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MEOtM9PmoRZ3GbOvrUTn8

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability api-stocktrends-com-09c1b975
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Deterministic forward regime outlook derived from recent weekly regime score direction and consistency.

## Output

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.

## Example request

```json
{
 "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"
}
```

## Request schema (JSON Schema)

```json
{
 "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
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-stocktrends-com-09c1b975/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.stocktrends.com](https://www.zero.xyz/host/api.stocktrends.com/llms.txt)
