{"uid":"cap_hkeKxY5W_GqN1qVKc2mBl","slug":"twelvex-sma-simple-moving-average-endpoint-4d7b1981","name":"TwelveX SMA (Simple Moving Average) 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/sma/%7Bsymbol%7D","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"interval":{"type":"string"},"time_period":{"type":"string","description":"Default: 20"}}},"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_InWtnBTYS7uWrbTF1onZH","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 Simple Moving Average (SMA) technical indicator for a given financial symbol, interval, and time period, powered by Twelve Data.","exampleAgentPrompt":"Can you get me the 50-period Simple Moving Average for AAPL on a daily interval using TwelveX?","exampleUseCases":[{"title":"Bitcoin SMA trend analysis","prompt":"What's the 50-period Simple Moving Average for Bitcoin on a daily interval? I want to see if we're in an uptrend or downtrend right now."},{"title":"Forex pair moving average","prompt":"Can you pull the 20-period SMA for EUR/USD on a 1-hour interval using TwelveX? I'm trying to identify short-term momentum for my trading strategy."},{"title":"TSLA crossover signal detection","prompt":"Fetch both the 20-period and 50-period Simple Moving Averages for TSLA on a daily interval — I need to check if there's a golden cross or death cross forming."}],"resultDescription":"A JSON object containing SMA values for the requested symbol, computed over the specified time period and interval — suitable for charting, trend analysis, and trading signal generation.","failureModes":["Invalid or unsupported symbol returns an error or empty result","Unsupported interval string causes a bad request error","Payment not completed results in 402 Payment Required response","Rate limiting or quota exceeded returns an error","Symbol not available on Twelve Data returns a not found error"],"whenToPreferThis":"Use this endpoint when you need programmatic access to Simple Moving Average technical indicator data for stocks, forex pairs, or crypto assets — especially when integrating into automated trading workflows or financial analysis pipelines that can handle micropayment-gated APIs via x402 protocol.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T00:45:51.365Z","isFirstParty":false}