{"uid":"cap_SsoPcmPUxbbgw6dQSo52d","slug":"x402stock-ema-indicator-41a7ac3f","name":"x402stock EMA Indicator","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?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_BOPd2x4J1q37Emxj3-lS6","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 Exponential Moving Average (EMA) time series for a given ticker symbol, with configurable window, timespan, series type, and limit.","exampleAgentPrompt":"What's the 20-day EMA for AAPL using daily close prices? Give me the last 50 data points.","exampleUseCases":[{"title":"EMA crossover trading signal detection","prompt":"Get me the 12-day and 26-day EMA for SPY on daily close prices, last 100 bars — I'm looking for a golden cross signal."},{"title":"Crypto momentum analysis on hourly bars","prompt":"Fetch the 50-period EMA for BTC-USD on hourly bars using close prices, last 200 data points, so I can see the short-term trend."},{"title":"ETF trend filter for portfolio rebalancing","prompt":"Pull the 200-day EMA for QQQ on daily close, last 30 values — I want to check whether it's trading above or below its long-term trend."}],"resultDescription":"A time series of EMA values for the requested ticker, including timestamps and computed EMA readings at each interval. The number of returned data points is bounded by the `limit` parameter (default 30, max 5000), computed over the specified `window` (default 50), `timespan` (default daily), and `series_type` (default close). Price data may be split/dividend adjusted based on the `adjusted` flag.","failureModes":["Invalid or unsupported ticker symbol returns an error or empty series","Payment failure via x402 protocol results in 402 Payment Required with no data","Window or limit values outside allowed ranges (e.g. window > 2000) rejected with validation error","Unsupported timespan or series_type enum values return a 400 error","Insufficient historical data for the requested window/limit combination may yield a shorter series","Network timeouts if upstream market data provider is slow"],"whenToPreferThis":"Use this endpoint when you need a ready-computed EMA time series without running the calculation yourself, especially for AI agents that pay per-call in USDC via x402 with no API key setup. Prefer this over raw price endpoints when you need EMA directly for technical analysis signals (crossovers, trend filters, momentum). Ideal for low-frequency tasks where $0.01/call economics make sense; consider caching results if you need repeated lookups of the same ticker/window.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:34:25.744Z","isFirstParty":false,"canonicalSlug":"x402stock-ema-indicator-9a0fc12e"}