# Stock Trends Historical Weekly Indicator Series

> Stock Trends Historical Weekly Indicator Series is a paid API for AI agents from api.stocktrends.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-12).

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.

## Facts

- Endpoint: GET https://api.stocktrends.com/v1/indicators/history?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-stocktrends-com-0c9d63aa
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rSM3MS8TTrfEQ1K-InGfx

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-0c9d63aa
```

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

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "limit": 52,
   "symbol_exchange": "AAPL-Q"
  }
 }
}
```

## 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": [
      "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
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-stocktrends-com-0c9d63aa/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)
