{"uid":"cap_YvLrdTC7ltgyXmXloxATW","slug":"twelvex-atr-average-true-range-endpoint-edb0d0a4","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://twelvix402.vercel.app/api/atr/%7Bsymbol%7D","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":"probe","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_-YghWnpNY7fLV7Gn4IovJ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","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.","exampleAgentPrompt":"What is the 14-period ATR for AAPL on the daily interval? I want to gauge its recent volatility.","exampleUseCases":[{"title":"Stop-loss placement for stock trade","prompt":"I'm planning to buy Tesla shares and want to set a smart stop-loss. Can you pull the 14-period ATR for TSLA on the daily chart so I can place my stop about 1.5x ATR below my entry price?"},{"title":"Crypto volatility check before position","prompt":"Before I size up my Bitcoin position, can you grab the ATR for BTC/USD on the 4-hour interval over the last 14 periods? I want to understand how volatile it's been lately."},{"title":"Forex pair risk assessment","prompt":"I'm considering a trade on EUR/USD and need to assess the current volatility. What's the 14-period ATR on the daily interval so I can figure out an appropriate position size and risk per trade?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-08T18:46:39.987Z","isFirstParty":false}