# x402stock MACD Technical Indicator

> x402stock MACD Technical Indicator is a paid API for AI agents from x402stock.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Returns MACD (Moving Average Convergence Divergence) technical indicator values — including MACD line, signal line, and histogram — for a given US stock ticker.

## Facts

- Endpoint: GET https://x402stock.vercel.app/api/v1/indicators/macd/%7Bticker%7D
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402stock-macd-technical-indicator-78e6d97b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JOfsWFyms9kURbw802EDq

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 x402stock-macd-technical-indicator-78e6d97b
```

Example prompt: What's the current MACD reading for AAPL — give me the MACD line, signal line, and histogram so I can see if there's a bullish crossover forming.

## When to prefer this

Use this endpoint when you need MACD technical indicator values specifically for US-listed stocks and want a pay-per-use model with no account registration. Prefer this over full-service brokerage APIs when you only need MACD data without subscriptions, or when integrating into an AI agent workflow that already uses x402 micropayments.

## Known failure modes

- Invalid or unknown ticker symbol returns an error or empty result
- Ticker for a non-US-listed stock may not be supported
- Payment failure (insufficient USDC balance) blocks the request
- Rate limiting or service unavailability on the upstream data provider
- Market closure periods may result in stale or missing timestamps

## How this service works

US stock prices, snapshots, OHLC bars, fundamentals, corporate actions, technical indicators and news for AI agents. No API keys. No accounts. Pay per request in USDC via x402.

## Output

Returns a JSON object containing the MACD value, signal line value, histogram, and timestamp for the requested ticker, along with the as-of date and data source. Typically one data point representing the most recent available MACD calculation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "required": {
   "type": "string"
  },
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "count": 1,
   "values": [
    {
     "value": 10.3904,
     "signal": 9.7754,
     "histogram": 0.615,
     "timestamp": "2026-05-28T12:00:00.000Z"
    }
   ],
   "indicator": "macd"
  },
  "as_of": "2026-05-28T12:00:00.000Z",
  "source": "massive",
  "ticker": "AAPL"
 }
}
```

## More

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