# TwelveX SMA (Simple Moving Average) Endpoint

> TwelveX SMA (Simple Moving Average) Endpoint is a paid API for AI agents from twelv1x402.vercel.app, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-13).

Returns the Simple Moving Average (SMA) technical indicator for a given financial symbol, interval, and time period, powered by Twelve Data.

## Facts

- Endpoint: GET https://twelv1x402.vercel.app/api/sma/%7Bsymbol%7D
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/twelvex-sma-simple-moving-average-endpoint-b4724458
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IsMiym7FTbLqrxO9Y5_fV

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 twelvex-sma-simple-moving-average-endpoint-b4724458
```

Example prompt: Can you get the 50-period simple moving average for AAPL on a daily interval using TwelveX?

## When to prefer this

Use this endpoint when you need SMA technical indicator data for stocks, forex, or crypto, especially when you want a pay-per-call model without a subscription and need reliable data backed by Twelve Data. Prefer over alternatives when working in an x402-compatible payment environment.

## Known failure modes

- Invalid or unsupported symbol returns an error response
- Unsupported interval string causes API rejection
- Missing required symbol path parameter results in 404
- Payment failure (x402) blocks access if USDC payment is not settled
- Rate limiting or quota exhaustion from underlying Twelve Data provider
- Malformed time_period value may return default (20) or error

## How this service works

Premium financial data API — 25 endpoints for stocks, forex, crypto, and technical analysis. Powered by Twelve Data.

## Output

Returns SMA indicator values for the requested symbol, including computed moving average data points with timestamps, suitable for charting or trading signal analysis.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "interval": {
   "type": "string"
  },
  "time_period": {
   "type": "string",
   "description": "Default: 20"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/twelvex-sma-simple-moving-average-endpoint-b4724458/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from twelv1x402.vercel.app](https://www.zero.xyz/host/twelv1x402.vercel.app/llms.txt)
