# Stock Trends Historical Weekly Price Series

> Stock Trends Historical Weekly Price 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 weekly OHLCV price data for a given Stock Trends symbol and exchange.

## Facts

- Endpoint: GET https://api.stocktrends.com/v1/prices/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-63ff4be9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4Tef3P5--hpaD_E2EL59z

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-63ff4be9
```

Example prompt: Pull the Stock Trends weekly price history for AAPL on NASDAQ (symbol AAPL-Q) from January 1 2020 to December 31 2024, up to 260 weeks.

## When to prefer this

Use this endpoint when you need raw historical weekly price data (OHLCV) for a specific Stock Trends symbol, particularly as a foundation for backtesting, charting, or combining with Stock Trends indicator series. Prefer this over the indicator history endpoint when you need price data alone without trend classification metadata.

## Known failure modes

- Invalid symbol_exchange format (must match ^[A-Z0-9.]+-[A-Z]$) returns 400
- Unknown symbol or exchange combination returns 404 or empty result
- limit exceeds maximum of 2600 returns 400
- Invalid date format for start/end returns 400
- Payment not provided or insufficient returns 402
- Rate limit exceeded returns 429

## How this service works

Historical weekly price series for a Stock Trends symbol.

## Output

A JSON array of weekly price records for the requested symbol, each containing date, open, high, low, close, and volume fields covering the specified date range and record limit.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "end": "2024-12-31",
   "limit": 260,
   "start": "2020-01-01",
   "cs_only": true,
   "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 price history for one symbol.",
   "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-63ff4be9/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)
