{"uid":"cap_GZ9qcSuz7BwQUojU-_QdT","slug":"x402stock-sma-indicator-2c489103","name":"x402stock SMA Indicator","description":"Simple Moving Average time series. Tune with `?window=`, `?timespan=`, `?series_type=`, `?limit=`. From x402stock, a pay-per-call market & economic data API for AI agents. No API key or account; pay in USDC via x402.","url":"https://agents.x402stock.xyz/api/v1/indicators/sma/:ticker?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"pathParams":{"type":"object","ticker":{"type":"string"}},"queryParams":{"type":"object","properties":{"limit":{"type":"integer","default":30,"maximum":5000,"exclusiveMinimum":0},"window":{"type":"integer","default":50,"maximum":2000,"exclusiveMinimum":0},"adjusted":{"type":"boolean","default":true},"timespan":{"enum":["minute","hour","day","week","month","quarter","year"],"type":"string","default":"day"},"series_type":{"enum":["open","high","low","close"],"type":"string","default":"close"}}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_UPcPddXB0t-qh3o5Ag0uV","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a Simple Moving Average (SMA) time series for a given stock ticker, configurable by window size, timespan, series type, and result limit.","exampleAgentPrompt":"What's the 50-day simple moving average on AAPL's daily close prices for the last 60 data points?","exampleUseCases":[{"title":"Trend detection for equity positions","prompt":"Pull the 200-day SMA on SPY's daily close prices — I want to see the last 90 values to check if we're above the long-term trend."},{"title":"Short-term momentum screening","prompt":"Get me the 20-day SMA on NVDA using hourly close prices, last 50 data points — I'm watching for a short-term crossover signal."},{"title":"Weekly moving average for swing trading","prompt":"Compute a 10-week SMA on TSLA's weekly close prices and give me the last 30 values so I can evaluate a swing trade entry."}],"resultDescription":"An array of timestamped SMA data points for the requested ticker, computed over the specified window and timespan on the chosen price series (open, high, low, or close). Each entry contains a timestamp and the SMA value for that period.","failureModes":["Invalid or unsupported ticker symbol returns an error or empty result","Window or limit value outside allowed range (0 < window ≤ 2000, 0 < limit ≤ 5000) returns a validation error","Unsupported timespan or series_type enum value returns a 400 error","Payment not fulfilled via x402/USDC results in a 402 Payment Required response","Insufficient historical data for the requested window/timespan combination may return fewer points than expected"],"whenToPreferThis":"Choose this endpoint when you need a ready-computed SMA time series without building your own OHLCV pipeline — ideal for technical analysis tasks where you need moving average values quickly, pay per call with no API key, and want configurable window/timespan/series_type tuning. Prefer this over raw OHLCV endpoints when the downstream task only needs smoothed price signals rather than raw candles.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-27T19:18:28.743Z","isFirstParty":false,"canonicalSlug":"x402stock-sma-indicator-2c489103"}