# ATR (Average True Range) Trading Data API

> ATR (Average True Range) Trading Data API is a paid API for AI agents from api-production-54bd.up.railway.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Returns the Average True Range (ATR) volatility indicator for a given trading symbol and timeframe

## Facts

- Endpoint: POST https://api-production-54bd.up.railway.app/v1/atr
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/atr-average-true-range-trading-data-api-87189fab
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_65jgZYSOgsxoRS2p6uY0N

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 atr-average-true-range-trading-data-api-87189fab -d '<json body>'
```

Example prompt: What's the 14-period ATR for BTC on the 4-hour chart right now? I want to size my position properly.

## When to prefer this

Use this endpoint when you need a quantitative measure of market volatility for a crypto or stock symbol for position sizing, stop-loss calculation, or breakout detection. Prefer this over raw OHLCV when you need a single, ready-computed ATR value rather than raw candle data.

## Known failure modes

- Invalid or unsupported symbol returns 4xx error
- Invalid timeframe parameter returns error
- Payment not attached or insufficient USDC results in 402 Payment Required
- Service unavailable or upstream data feed outage returns 5xx
- Rate limit exceeded returns 429

## How this service works

Trading Data API — 23 endpoints for agents: crypto & stock prices/OHLCV, ATR, Fair Value Gaps, ICT liquidity levels, funding/OI, order books, Kalshi prediction markets, DeFi TVL, volatility, macro calendar, and an AI momentum score. Full catalog at /v1/status.

## Output

Returns the computed Average True Range value for the requested symbol and timeframe, reflecting recent price volatility. Useful for position sizing, stop-loss placement, and gauging market volatility.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/atr-average-true-range-trading-data-api-87189fab/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api-production-54bd.up.railway.app](https://www.zero.xyz/host/api-production-54bd.up.railway.app/llms.txt)
