{"uid":"cap_zLZ96NT8rkPnJiTJr3Un7","slug":"macd-momentum-indicator-marketdata-use-x402atlas-com-f502532c","name":"MACD Momentum Indicator – marketdata.use.x402atlas.com","description":"MACD momentum indicator for any ticker — trend and signal-line analytics for stocks, crypto, forex and options.","url":"https://marketdata.use.x402atlas.com/macd","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"},"timespan":{"enum":["minute","hour","day","week","month","quarter","year"],"type":"string","description":"Aggregate window unit used to compute the indicator"},"long_window":{"type":"integer","maximum":50000,"minimum":1,"description":"MACD long window"},"series_type":{"enum":["open","high","low","close"],"type":"string","description":"Price field used to compute the indicator"},"short_window":{"type":"integer","maximum":50000,"minimum":1,"description":"MACD short window"},"signal_window":{"type":"integer","maximum":50000,"minimum":1,"description":"MACD signal window"}}}},"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."},"signal":{"type":"number","description":"MACD signal line value."},"histogram":{"type":"number","description":"MACD histogram value (value minus signal)."}}},"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,"signal":106.98,"histogram":38.38}],"ticker":"AAPL","indicator":"macd","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_FxN3HzlB2I_VcLNY7brVi","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 MACD (Moving Average Convergence Divergence) momentum indicator values — including MACD line, signal line, and histogram — for stocks, crypto, forex, and options tickers.","exampleAgentPrompt":"Pull the daily MACD indicator for AAPL using a 12-period short window, 26-period long window, and 9-period signal window for the last 100 data points in descending order.","exampleUseCases":null,"resultDescription":"Returns a time-series array of MACD data points, each containing the MACD line value, signal line value, histogram value, and timestamp, covering the requested ticker and timespan. Up to 5000 data points can be returned per call.","failureModes":["Invalid or unrecognized ticker symbol returns an error or empty dataset","Missing required 'ticker' query parameter returns a 400 validation error","Timespan value outside allowed enum (minute/hour/day/week/month/quarter/year) returns an error","Limit out of range (below 1 or above 5000) causes a validation error","Payment failure or insufficient USDC balance returns a 402 Payment Required error","Network timeout or upstream data provider unavailability returns a 5xx error"],"whenToPreferThis":"Choose this endpoint when you need MACD momentum and trend-reversal analytics for any asset class (stocks, crypto, forex, options) with configurable short/long/signal windows. Prefer this over SMA or EMA endpoints when you specifically need divergence/convergence and signal-line crossover data rather than simple smoothed price trend lines.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:33:36.424Z","isFirstParty":false}