{"uid":"cap_LZRWqFfoSOmXdiGW-HCh3","slug":"agents-x402stock-xyz-x402stock-ema-time-series-0e7e1231","name":"x402stock EMA Time Series","description":"Exponential 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/ema/{ticker}","method":"GET","headers":{},"bodySchema":{"type":"object","required":["ticker"],"properties":{"limit":{"type":"integer","default":30,"maximum":5000,"exclusiveMinimum":0},"ticker":{"type":"string","description":"US-listed ticker symbol (uppercase), e.g. AAPL."},"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"}}},"responseSchema":{"type":"object","required":["ticker","data","source","as_of"],"properties":{"data":{"type":"object","required":["indicator","count","values"],"properties":{"count":{"type":"number"},"values":{"type":"array","items":{"type":"object","required":["timestamp","value"],"properties":{"value":{"type":"number"},"signal":{"type":"number"},"histogram":{"type":"number"},"timestamp":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false}},"indicator":{"type":"string"}},"additionalProperties":false},"as_of":{"type":"string"},"source":{"type":"string","const":"x402stock"},"ticker":{"type":"string"},"feedback":{"type":"object","required":["endpoint","method","free","note"],"properties":{"free":{"type":"boolean"},"note":{"type":"string"},"method":{"type":"string","const":"POST"},"endpoint":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false},"example":null,"exampleRequest":null,"tags":[],"displayCostAmount":"0.01","displayCostAsset":"USD","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":"mpp","network":"tempo","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_gJiUXHyASr_jbEg0Y0nQH","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x20C000000000000000000000b9537d11c60E8b50","unit":"request","depositMicros":null,"planRef":null}],"brandName":"agents.x402stock.xyz","brandSlug":"agents-x402stock-xyz-mpp","brandBaseUrl":"https://agents.x402stock.xyz","brandDocsUrl":null,"whatItDoes":"Returns an Exponential Moving Average (EMA) time series for a US-listed stock ticker, configurable by window size, timespan, series type, and result count.","exampleAgentPrompt":"Can you pull the 20-day EMA on daily close prices for NVDA, showing the last 60 data points?","exampleUseCases":[{"title":"Trend detection for swing trading","prompt":"Get me the 50-day EMA on daily close prices for AAPL — I want the last 90 values so I can see if the stock is trending above or below its moving average."},{"title":"Short-term momentum on hourly bars","prompt":"Fetch a 12-period EMA on hourly close prices for SPY with the last 200 data points so I can track intraday momentum."},{"title":"Weekly trend for long-term portfolio review","prompt":"Pull a 26-week EMA on weekly close prices for MSFT, last 52 data points, so I can review the long-term trend for my portfolio."}],"resultDescription":"Returns a JSON object containing the ticker, source, as-of timestamp, and a data object with the indicator name, count of values, and an array of timestamped EMA value objects. Each value entry includes the timestamp and computed EMA value. Optional MACD-style signal and histogram fields may also appear.","failureModes":["Invalid or unlisted ticker symbol returns an error or empty data","Window or limit values outside allowed ranges (1–2000, 1–5000) rejected","Unsupported timespan or series_type enum value causes a 422 validation error","Payment failure or insufficient USDC balance blocks the request via x402","Ticker with insufficient historical data may return fewer values than requested"],"whenToPreferThis":"Use this endpoint when you need EMA-based trend or momentum data for a US-listed stock or ETF and want configurable window sizes and timespans. Prefer it over SMA endpoints when you need exponentially weighted smoothing that reacts more quickly to recent price changes. Ideal for technical analysis pipelines, signal generation, or charting agents that need pay-per-call access with no API key setup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:39:32.894Z","isFirstParty":false}