{"uid":"cap_Xo4MJiFxdznQhmG9-fHMR","slug":"twelvex-atr-average-true-range-endpoint-12336397","name":"TwelveX ATR (Average True Range) Endpoint","description":"Premium financial data API — 25 endpoints for stocks, forex, crypto, and technical analysis. Powered by Twelve Data.","url":"https://tw3lvtrexdata.vercel.app/api/atr/%7Bsymbol%7D?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"interval":{"type":"string"},"time_period":{"type":"string","description":"Default: 14"}}},"responseSchema":{"type":"object"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.1","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_MpHej-y2hiqidQppI0LGR","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the Average True Range (ATR) technical indicator for a given financial symbol over a specified interval and time period, powered by Twelve Data.","exampleAgentPrompt":"What's the 14-period ATR for AAPL on a 1-day interval right now? I want to gauge its recent volatility.","exampleUseCases":[{"title":"Stock volatility check before options trade","prompt":"Can you pull the 14-period ATR for TSLA on a daily interval? I need to understand its volatility before deciding on my options position."},{"title":"Crypto ATR for breakout strategy","prompt":"Get me the ATR for BTC/USDT using a 1-hour interval and a 20-period lookback — I'm building a breakout trading bot and need the volatility baseline."},{"title":"Forex ATR for stop-loss sizing","prompt":"What's the average true range for EUR/USD on the 4-hour chart with the default 14-period setting? I want to set my stop-loss correctly."}],"resultDescription":"Returns a JSON object containing the ATR (Average True Range) value for the requested symbol, computed over the specified interval and time period. Typically includes the indicator value and metadata such as symbol, interval, and timestamp.","failureModes":["Invalid or unsupported ticker symbol returns an error","Unsupported interval string causes a bad request response","Payment not attached or insufficient USDC triggers a 402 Payment Required","Rate limiting or upstream Twelve Data API unavailability causes a 503 or timeout","Missing required symbol in the URL path returns a 404 or parameter error"],"whenToPreferThis":"Choose this endpoint when you need a pre-computed ATR technical indicator without building your own OHLCV pipeline. It is ideal for algorithmic trading agents, volatility-based position sizing, stop-loss calculations, or breakout detection that need ATR values for stocks, forex pairs, or crypto assets quickly via a pay-per-call model.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T06:36:21.999Z","isFirstParty":false,"canonicalSlug":"twelvex-atr-average-true-range-endpoint-12336397"}