# TwelveX ATR (Average True Range) Endpoint

> TwelveX ATR (Average True Range) Endpoint is a paid API for AI agents from twelvix402.vercel.app, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-08).

Returns the Average True Range (ATR) technical indicator for a given financial symbol over a specified interval and time period.

## Facts

- Endpoint: GET https://twelvix402.vercel.app/api/atr/%7Bsymbol%7D
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-08
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/twelvex-atr-average-true-range-endpoint-edb0d0a4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YvLrdTC7ltgyXmXloxATW

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-atr-average-true-range-endpoint-edb0d0a4
```

Example prompt: What is the 14-period ATR for AAPL on the daily interval? I want to gauge its recent volatility.

## When to prefer this

Use this endpoint when you need the ATR technical indicator specifically for volatility analysis, stop-loss calculation, or position sizing across stocks, forex, or crypto. Prefer this over raw OHLCV endpoints when you want a pre-computed volatility measure rather than raw price data. Best suited for agents performing technical analysis workflows.

## Known failure modes

- Invalid or unsupported ticker symbol returns an error
- Unsupported interval value causes a bad request response
- Payment not provided or insufficient USDC results in HTTP 402
- Symbol not covered by Twelve Data returns no data
- Rate limiting or upstream Twelve Data outage causes 5xx error

## How this service works

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

## Output

Returns the Average True Range (ATR) value(s) for the requested symbol, computed over the specified time period and interval. The response includes volatility measurement data that can be used for trading decisions, stop-loss placement, or risk assessment.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/twelvex-atr-average-true-range-endpoint-edb0d0a4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from twelvix402.vercel.app](https://www.zero.xyz/host/twelvix402.vercel.app/llms.txt)
