# x402stock MACD Technical Indicator Time Series

> x402stock MACD Technical Indicator Time Series is a paid API for AI agents from agents.x402stock.xyz, paid per call via MPP, $0.01/call, status unknown (last checked 2026-10-13).

Returns MACD time series data (value, signal line, histogram) for a US-listed stock ticker with configurable windows and timespan

## Facts

- Endpoint: GET https://agents.x402stock.xyz/api/v1/indicators/macd/{ticker}?utm_source=zero.xyz
- Price: $0.01/call
- Payment: MPP
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Provider: agents.x402stock.xyz
- Website: https://agents.x402stock.xyz
- Canonical page: https://www.zero.xyz/c/agents-x402stock-xyz-x402stock-macd-technical-indicator-time-series-d33b9675
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ub-GUePNuhNu0SCfE-AGU

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agents-x402stock-xyz-x402stock-macd-technical-indicator-time-series-d33b9675
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

MACD time series with value, signal line, and histogram. Tune with ?short_window=, ?long_window=, ?signal_window=, ?timespan=, ?series_type=, ?limit=.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agents-x402stock-xyz-x402stock-macd-technical-indicator-time-series-d33b9675/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.x402stock.xyz](https://www.zero.xyz/host/agents.x402stock.xyz/llms.txt)
