{"uid":"cap_T8rBMUsNUkgb7p2eO_4fr","slug":"exponential-moving-average-ema-technical-indicator-fd2bb320","name":"Exponential Moving Average (EMA) Technical Indicator","description":"Exponential Moving Average (EMA) technical indicator for any ticker — trend analytics for stocks, crypto, forex and options.","url":"https://marketdata.use.x402atlas.com/ema","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"],"type":"string"},"queryParams":{"type":"object","required":["ticker"],"properties":{"limit":{"type":"integer","maximum":50000,"minimum":1,"description":"Max points returned"},"order":{"enum":["asc","desc"],"type":"string","description":"Result ordering"},"ticker":{"type":"string","description":"Asset-prefixed ticker, e.g. AAPL, X:BTCUSD"},"window":{"type":"integer","maximum":50000,"minimum":1,"description":"Lookback window size"},"timespan":{"enum":["minute","hour","day","week","month","quarter","year"],"type":"string","description":"Aggregate window unit used to compute the indicator"},"series_type":{"enum":["open","high","low","close"],"type":"string","description":"Price field used to compute the indicator"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["queried_at","ticker","indicator","points"],"properties":{"points":{"type":"array","items":{"type":"object","required":["time","value"],"properties":{"time":{"type":"string","format":"date-time","description":"Reading timestamp."},"value":{"type":"number","description":"Indicator value."}}},"description":"Normalized indicator readings, oldest or newest first per `order`."},"ticker":{"type":"string","description":"Echo of the requested ticker."},"timespan":{"type":"string","description":"Echo of the requested timespan, if any."},"indicator":{"type":"string","description":"Which indicator this response is for."},"queried_at":{"type":"string","format":"date-time","description":"UTC timestamp when this bridge queried the upstream."}}}}}}},"responseSchema":{"type":"json","example":{"points":[{"time":"2024-01-02T00:00:00Z","value":182.34}],"ticker":"AAPL","indicator":"ema","queried_at":"2024-01-02T12:00:00Z"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.015","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.015/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.015","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.015","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_DX2BHUbw8z0-ASGa-l6RI","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.015","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns EMA values for any ticker (stocks, crypto, forex, options) across configurable timespan and window size for trend analysis.","exampleAgentPrompt":"What's the 20-day EMA for AAPL using closing prices over the last 100 daily bars? Show me the results in descending order.","exampleUseCases":[{"title":"Bitcoin momentum crossover strategy","prompt":"Can you pull the 12-period and 26-period EMA for BTCUSD on hourly bars over the last two weeks? I want to see where the short-term EMA crosses above or below the long-term one to spot momentum shifts."},{"title":"Forex trend signal for EUR/USD","prompt":"Fetch me the 50-period EMA for EUR/USD using daily closing prices over the past six months. I'm trying to figure out whether the pair is in an uptrend or downtrend right now."},{"title":"Tesla 20-day EMA analysis","prompt":"What does Tesla's 20-day EMA look like over the last 90 daily bars? I want to compare it against recent price action to see if TSLA is trading above or below its short-term trend."}],"resultDescription":"Returns a time-series of EMA data points for the requested ticker, each with a timestamp and computed EMA value, covering the configured window and timespan.","failureModes":["Invalid or unrecognized ticker returns error or empty result","Window size out of range causes rejection","Timespan or series_type enum mismatch causes bad request","Limit exceeds 5000 cap returns error","Insufficient historical data for the requested window returns partial or empty series","Payment not processed results in 402 response"],"whenToPreferThis":"Use this endpoint when you need exponential moving average (EMA) values — which weight recent data more heavily than SMA — for any supported asset class (stocks, crypto, forex, options). Prefer over SMA when recency-weighted trend signals are needed for momentum or crossover strategies.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:49:40.182Z","isFirstParty":false}