# MACD Momentum Indicator – marketdata.use.x402atlas.com

> MACD Momentum Indicator – marketdata.use.x402atlas.com is a paid API for AI agents from marketdata.use.x402atlas.com, paid per call via x402, $0.015/call, status unknown (last checked 2026-09-14).

Returns MACD (Moving Average Convergence Divergence) momentum indicator values — including MACD line, signal line, and histogram — for stocks, crypto, forex, and options tickers.

## Facts

- Endpoint: GET https://marketdata.use.x402atlas.com/macd
- Price: $0.015/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/macd-momentum-indicator-marketdata-use-x402atlas-com-f502532c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zLZ96NT8rkPnJiTJr3Un7

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 macd-momentum-indicator-marketdata-use-x402atlas-com-f502532c
```

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

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

MACD momentum indicator for any ticker — trend and signal-line analytics for stocks, crypto, forex and options.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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": {
    
… (truncated)
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/macd-momentum-indicator-marketdata-use-x402atlas-com-f502532c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from marketdata.use.x402atlas.com](https://www.zero.xyz/host/marketdata.use.x402atlas.com/llms.txt)
