# Stock Trends ST-IM Historical Forward Return Distribution Series

> Stock Trends ST-IM Historical Forward Return Distribution Series is a paid API for AI agents from api.stocktrends.com, paid per call via x402, $0.0075/call, status unknown (last checked 2026-09-13).

Returns historical ST-IM (Stock Trends Inference Model) forward return distribution series for a given symbol across 4, 13, and 40 week horizons

## Facts

- Endpoint: GET https://api.stocktrends.com/v1/stim/history
- Price: $0.0075/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-stocktrends-com-9489a109
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PXg2K51OoYYR_Swmjbmkn

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-9489a109
```

Example prompt: Pull the Stock Trends ST-IM historical forward return distribution series for AAPL-Q (Apple on NASDAQ) from 2022-01-01 to 2024-12-31, up to 260 records, so I can review how the 4, 13, and 40 week forward return expectations have evolved over time.

## When to prefer this

Use this endpoint when you need historical time-series data of ST-IM forward return distributions for backtesting, longitudinal research, or analyzing how the model's forward expectations have evolved for a specific symbol. Prefer this over the latest ST-IM endpoint when you need historical context rather than current outputs. Complement with /v1/meta/stim for provenance and interpretation guidance.

## Known failure modes

- Invalid symbol_exchange format (must match ^[A-Z0-9.]+-[A-Z]$) returns a 400 error
- Unknown or unlisted symbol/exchange combination returns empty results or 404
- Date range with no available data returns empty series
- limit exceeding 2600 returns a validation error
- Invalid date format for start/end returns a 400 error
- Payment failure or insufficient USDC balance returns a 402 error

## How this service works

Historical ST-IM forward return distribution series for a symbol. Use /v1/meta/stim for ST-IM provenance, base-period context, and interpretation limits.

## Output

A time-series of historical ST-IM forward return distribution records for the requested symbol, covering 4-week, 13-week, and 40-week forward return horizons. Each entry reflects the model's forward return probability distribution at a given point in time, allowing longitudinal analysis of how expectations have shifted across market history.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "end": "2023-12-31",
   "limit": 260,
   "start": "2023-01-01",
   "include_gaps": false,
   "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"
      },
      "exchange": {
       "enum": [
        "N",
        "Q",
        "A",
        "B",
        "T",
        "I"
       ],
       "type": "string"
      },
      "include_gaps": {
       "type": "boolean",
       "default": false
      },
      "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": "Historical ST-IM distributions across 4, 13, and 40 week horizons.",
   "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-9489a109/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)
