# claw402 MACD Indicator — Polygon Technical Analysis

> claw402 MACD Indicator — Polygon Technical Analysis is a paid API for AI agents from claw402.ai, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-13).

Returns MACD (Moving Average Convergence Divergence) technical indicator data for a given stock ticker via Polygon.io, paid per-call with USDC over x402.

## Facts

- Endpoint: GET https://claw402.ai/api/v1/polygon/macd
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/claw402-macd-indicator-polygon-technical-analysis-07377cb2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Qa6cusuEb2UYyqRQfc3fG

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 claw402-macd-indicator-polygon-technical-analysis-07377cb2
```

Example prompt: Can you get me the MACD indicator for AAPL using a 12-day short window, 26-day long window, and 9-day signal window on daily candles, closing price as the series type, most recent 10 results in descending order?

## When to prefer this

Use this endpoint when you need MACD technical indicator data for a stock ticker without needing a Polygon.io API key, and you prefer micro-payment per-call billing via USDC over a subscription. Ideal for agents that need occasional technical analysis data on-demand with no registration overhead.

## Known failure modes

- Invalid or unsupported stock ticker returns empty data array
- Missing required query parameters may return error or empty response
- Expired or invalid USDC payment returns 402 Payment Required
- Unsupported timespan value results in error response
- Rate limiting or upstream Polygon.io outage may cause failures
- Malformed query parameters return code != 0 or empty data

## How this service works

Backed by vergex.trade. Pay for any API with USDC. No API keys. No registration. Just a wallet.

## Output

A JSON object with a code field (0 for success) and a data array containing MACD values including the MACD line, signal line, and histogram values with their corresponding timestamps, suitable for charting or algorithmic trading signals.

## 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",
     "properties": {
      "limit": {
       "type": "string"
      },
      "order": {
       "type": "string"
      },
      "adjusted": {
       "type": "string"
      },
      "timespan": {
       "type": "string"
      },
      "timestamp": {
       "type": "string"
      },
      "long_window": {
       "type": "string"
      },
      "series_type": {
       "type": "string"
      },
      "stockTicker": {
       "type": "string"
      },
      "short_window": {
       "type": "string"
      },
      "signal_window": {
       "type": "string"
      },
      "expand_underlying": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "code": 0,
  "data": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/claw402-macd-indicator-polygon-technical-analysis-07377cb2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from claw402.ai](https://www.zero.xyz/host/claw402.ai/llms.txt)
