# Stock Trends Latest Weekly Price

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

Returns the most recent weekly price row for a given stock symbol, including adjusted close, weekly high/low, volume, trades, and price change.

## Facts

- Endpoint: GET https://api.stocktrends.com/v1/prices/latest
- Price: $0.0025/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-f6b7c345
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uWadb6zjA74uaY-8RHMCr

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-f6b7c345
```

Example prompt: What's the latest weekly price data for AAPL on Nasdaq — give me the adjusted close, weekly high and low, volume, and price change from the most recent completed week.

## When to prefer this

Use this endpoint when you need the single most recent weekly price snapshot for a specific stock symbol tracked by Stock Trends — particularly when you want split-adjusted close prices alongside volume and trade count in a single call. Prefer this over historical series endpoints when only the latest data point is needed. Best suited for quick lookups feeding dashboards, alerts, or decision logic that depends on current price state.

## Known failure modes

- Invalid or unsupported symbol_exchange format (must match pattern ^[A-Z0-9.]+-[A-Z]$) returns a 400 or validation error
- Symbol not tracked by Stock Trends returns a 404 or empty result
- Invalid exchange code (not one of N, Q, A, B, T, I) returns a validation error
- Payment failure (x402) if USDC balance is insufficient
- Rate limiting if too many requests are made in quick succession

## How this service works

Latest weekly price row for a Stock Trends symbol, including adjusted close, weekly high/low, volume (actual shares traded), trades, and price change.

## Output

A JSON object containing the latest weekly price row for the requested symbol, including adjusted close price, weekly high, weekly low, volume, number of trades, split factor, and price change for the most recent week available in the Stock Trends dataset.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "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": {
      "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": "Latest weekly price, adjusted close, high/low, volume (actual shares traded), trades, split factor, and price change.",
   "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-f6b7c345/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)
