{"uid":"cap_iBVcF8uKS6mYKJuV6GFRs","slug":"x402stock-xyz-106c4ff5","name":"x402stock.xyz 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://x402stock.xyz/api/v1/indicators/ema/AAPL","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"},"queryParams":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["timespan","window","series_type","adjusted","limit"],"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}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","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}}}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"limit":30,"window":50,"adjusted":true,"timespan":"day","series_type":"close"}}},"response":{"data":{"count":30,"values":[{"value":283.23267378398805,"timestamp":"2026-05-29T04:00:00.000Z"},{"value":282.0560482241508,"timestamp":"2026-05-28T04:00:00.000Z"},{"value":280.81302978432024,"timestamp":"2026-05-27T04:00:00.000Z"},{"value":279.5870310000068,"timestamp":"2026-05-26T04:00:00.000Z"},{"value":278.4138485918438,"timestamp":"2026-05-22T04:00:00.000Z"},{"value":277.1727811874293,"timestamp":"2026-05-21T04:00:00.000Z"},{"value":276.0373845012019,"timestamp":"2026-05-20T04:00:00.000Z"},{"value":274.96748182778157,"timestamp":"2026-05-19T04:00:00.000Z"},{"value":273.9877872085073,"timestamp":"2026-05-18T04:00:00.000Z"},{"value":273.01422750273207,"timestamp":"2026-05-15T04:00:00.000Z"},{"value":271.90337964570074,"timestamp":"2026-05-14T04:00:00.000Z"},{"value":270.8296400394028,"timestamp":"2026-05-13T04:00:00.000Z"},{"value":269.6851355512151,"timestamp":"2026-05-12T04:00:00.000Z"},{"value":268.66003904310145,"timestamp":"2026-05-11T04:00:00.000Z"},{"value":267.6796324734321,"timestamp":"2026-05-08T04:00:00.000Z"},{"value":266.63308686010276,"timestamp":"2026-05-07T04:00:00.000Z"},{"value":265.78382509929065,"timestamp":"2026-05-06T04:00:00.000Z"},{"value":264.89704245028213,"timestamp":"2026-05-05T04:00:00.000Z"},{"value":264.1099829584569,"timestamp":"2026-05-04T04:00:00.000Z"},{"value":263.5907985894143,"timestamp":"2026-05-01T04:00:00.000Z"},{"value":262.915320980819,"timestamp":"2026-04-30T04:00:00.000Z"},{"value":262.5710483677912,"timestamp":"2026-04-29T04:00:00.000Z"},{"value":262.2608870766806,"timestamp":"2026-04-28T04:00:00.000Z"},{"value":261.91602532470836,"timestamp":"2026-04-27T04:00:00.000Z"},{"value":261.6836181951046,"timestamp":"2026-04-24T04:00:00.000Z"},{"value":261.3009087336803,"timestamp":"2026-04-23T04:00:00.000Z"},{"value":260.80584378403455,"timestamp":"2026-04-22T04:00:00.000Z"},{"value":260.3011843466482,"timestamp":"2026-04-21T04:00:00.000Z"},{"value":260.061640850593,"timestamp":"2026-04-20T04:00:00.000Z"},{"value":259.53150374245394,"timestamp":"2026-04-17T04:00:00.000Z"}],"indicator":"ema"},"as_of":"2026-05-29T04:00:00.000Z","source":"massive","ticker":"AAPL"}},"exampleRequest":{"limit":30,"window":50,"adjusted":true,"timespan":"day","series_type":"close"},"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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__oMudg6BlFMdkHyfKfy4k","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) values for a given stock ticker over a configurable timespan, window, and price series.","exampleAgentPrompt":"What's the 50-day EMA for AAPL using daily close prices, adjusted, for the last 30 data points?","exampleUseCases":null,"resultDescription":"Returns a JSON object containing the ticker symbol, source, as-of date, and a data object with the indicator name (EMA), count of values, and an array of timestamp/value pairs representing the EMA series.","failureModes":["Invalid ticker symbol returns empty or error response","Window size exceeding 2000 causes validation error","Limit exceeding 5000 causes validation error","Invalid timespan enum value causes bad request","Unsupported series_type value causes validation error","Payment not fulfilled (x402 payment required) returns 402"],"whenToPreferThis":"Use this endpoint when you need Exponential Moving Average technical indicator data for US-listed equities, especially when building trading signals, trend analysis, or chart overlays. Prefer this over simple moving averages when you want more weight given to recent prices. Costs $0.02 USDC per call via x402 micropayment protocol.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:44:13.306Z","isFirstParty":false}