{"uid":"cap_ub-GUePNuhNu0SCfE-AGU","slug":"agents-x402stock-xyz-x402stock-macd-technical-indicator-time-series-d33b9675","name":"x402stock MACD Technical Indicator Time Series","description":"MACD time series with value, signal line, and histogram. Tune with ?short_window=, ?long_window=, ?signal_window=, ?timespan=, ?series_type=, ?limit=.","url":"https://agents.x402stock.xyz/api/v1/indicators/macd/{ticker}?utm_source=zero.xyz","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."},"adjusted":{"type":"boolean","default":true},"timespan":{"enum":["minute","hour","day","week","month","quarter","year"],"type":"string","default":"day"},"long_window":{"type":"integer","default":26,"maximum":2000,"exclusiveMinimum":0},"series_type":{"enum":["open","high","low","close"],"type":"string","default":"close"},"short_window":{"type":"integer","default":12,"maximum":2000,"exclusiveMinimum":0},"signal_window":{"type":"integer","default":9,"maximum":2000,"exclusiveMinimum":0}}},"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":{"type":"string","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_sE-ECZGQ-R_ZcDNwLZMCq","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-x402","brandBaseUrl":"https://agents.x402stock.xyz","brandDocsUrl":null,"whatItDoes":"Returns MACD time series data (value, signal line, histogram) for a US-listed stock ticker with configurable windows and timespan","exampleAgentPrompt":"Pull the MACD time series for NVDA using a 12-day short window, 26-day long window, and 9-day signal window on daily closing prices — give me the last 50 values including the signal line and histogram.","exampleUseCases":[{"title":"Momentum signal check before trading","prompt":"Get the MACD indicator for TSLA on daily close prices with the standard 12/26/9 settings and show me the last 30 values — I want to see if the histogram is turning bullish."},{"title":"Custom window MACD for swing trading","prompt":"Fetch MACD data for SPY using a short window of 8, long window of 21, and signal window of 5 on weekly bars — I need 100 periods for my swing trading strategy."},{"title":"Hourly MACD for intraday analysis","prompt":"Give me the hourly MACD for AAPL with default windows on the close price, last 60 bars — I'm checking for intraday momentum crossovers."}],"resultDescription":"Returns a JSON object containing the ticker, an as_of timestamp, and a data object with the indicator name, count of results, and an array of time-stamped MACD entries each including the MACD value, signal line value, and histogram value. Source is always identified as x402stock.","failureModes":["Invalid or unlisted ticker symbol returns an error or empty data","short_window >= long_window may produce invalid or nonsensical MACD values","Insufficient historical data for the requested window sizes results in fewer or no values","Unsupported timespan enum value returns a validation error","limit exceeding 5000 is rejected","Payment failure via x402 prevents access to the endpoint"],"whenToPreferThis":"Choose this endpoint when you need MACD technical indicator time series for a US-listed stock with flexible configuration of short, long, and signal windows. It is ideal for AI agents performing automated technical analysis, momentum detection, or trading signal generation without needing API key setup — paying per call in USDC. Prefer it over general OHLCV endpoints when you specifically need pre-computed MACD values rather than raw price data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T00:30:03.448Z","isFirstParty":false,"canonicalSlug":"agents-x402stock-xyz-x402stock-macd-technical-indicator-time-series-d33b9675"}