# x402stock SMA Indicator — Simple Moving Average for US Stocks

> x402stock SMA Indicator — Simple Moving Average for US Stocks is a paid API for AI agents from x402stock.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-29).

Returns the Simple Moving Average (SMA) technical indicator values for a given US stock ticker, with timestamped data points, paid per request via x402/USDC.

## Facts

- Endpoint: GET https://x402stock.vercel.app/api/v1/indicators/sma/%7Bticker%7D?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402stock-sma-indicator-simple-moving-average-for-us-stocks-b3026c0d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_j-QUUe9N7iMQpS0cdRiJg

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 x402stock-sma-indicator-simple-moving-average-for-us-stocks-b3026c0d
```

Example prompt: What's the simple moving average for AAPL right now? Pull the latest SMA values so I can see the trend.

## When to prefer this

Choose this endpoint when you need SMA technical indicator data for a US-listed stock without setting up API keys or accounts, and you can pay micro-amounts per request in USDC. Ideal for AI agents doing real-time or on-demand technical analysis lookups, especially in automated trading, portfolio monitoring, or financial research workflows that need pay-as-you-go access.

## Known failure modes

- Invalid or unrecognized ticker symbol returns an error or empty data
- Ticker for a non-US-listed equity may return no data
- Network or payment failure via x402 protocol results in 402 Payment Required or connection error
- Requesting a period with insufficient historical data may return fewer data points than expected
- Malformed ticker path parameter causes a 400 or 404 error

## How this service works

US stock prices, snapshots, OHLC bars, fundamentals, corporate actions, technical indicators and news for AI agents. No API keys. No accounts. Pay per request in USDC via x402.

## Output

Returns a JSON object containing the ticker symbol, indicator name ('sma'), an as-of timestamp, the data source, and an array of SMA value objects each with a numeric value and ISO 8601 timestamp, plus a count of returned data points.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "required": {
   "type": "string"
  },
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "count": 2,
   "values": [
    {
     "value": 275.2846,
     "timestamp": "2026-05-28T12:00:00.000Z"
    },
    {
     "value": 274.0422,
     "timestamp": "2026-05-27T12:00:00.000Z"
    }
   ],
   "indicator": "sma"
  },
  "as_of": "2026-05-28T12:00:00.000Z",
  "source": "massive",
  "ticker": "AAPL"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402stock-sma-indicator-simple-moving-average-for-us-stocks-b3026c0d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402stock.vercel.app](https://www.zero.xyz/host/x402stock.vercel.app/llms.txt)
