# Alpha Vantage MACD via Locus x402

> Alpha Vantage MACD via Locus x402 is a paid API for AI agents from alphavantage.x402.paywithlocus.com, paid per call via x402, $0.008/call, status unknown (last checked 2026-09-14).

Computes the Moving Average Convergence Divergence (MACD) technical indicator for a given stock symbol and interval, returning MACD line, signal line, and histogram values.

## Facts

- Endpoint: POST https://alphavantage.x402.paywithlocus.com/alphavantage/macd
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/alpha-vantage-macd-via-locus-x402-27e21bcd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-A1mz1NBZs_Ib8ClX-upk

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 alpha-vantage-macd-via-locus-x402-27e21bcd -d '<json body>'
```

Example prompt: Can you get the MACD indicator for AAPL on a daily interval, using the default fast period of 12, slow period of 26, and signal period of 9 based on closing prices?

## When to prefer this

Choose this endpoint when you need MACD technical indicator data specifically, computed server-side via Alpha Vantage's standardized methodology, and you want to pay per-call in USDC via the x402 micropayment protocol without needing an Alpha Vantage API key directly. Prefer this over raw price endpoints when you want pre-computed momentum signals rather than raw OHLCV data.

## Known failure modes

- Invalid or unrecognized ticker symbol returns an error or empty data object
- Unsupported interval string causes a validation error
- Payment failure or insufficient USDC balance prevents the request from completing
- Missing required 'symbol' field results in a bad request error
- Requesting data for a very recent intraday month with no data yet may return empty results

## How this service works

Financial market data — stock prices, forex, crypto, commodities, economic indicators, technical analysis, and news sentiment.

## Output

Returns a JSON object containing timestamped MACD data points including the MACD line value, the signal line value, and the histogram (MACD minus signal) for each period, along with payment settlement details and request metadata.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "month": {
   "type": "string"
  },
  "symbol": {
   "type": "string"
  },
  "datatype": {
   "type": "string"
  },
  "interval": {
   "type": "string"
  },
  "fastperiod": {
   "type": "number"
  },
  "slowperiod": {
   "type": "number"
  },
  "series_type": {
   "type": "string"
  },
  "signalperiod": {
   "type": "number"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {},
  "payment": {
   "scheme": "exact",
   "settledUsdc": "0.001000",
   "authorizedMaxUsdc": "0.001000"
  },
  "request": {
   "id": "00000000-0000-4000-8000-000000000000",
   "statusUrl": "/requests/00000000-0000-4000-8000-000000000000"
  },
  "success": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/alpha-vantage-macd-via-locus-x402-27e21bcd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from alphavantage.x402.paywithlocus.com](https://www.zero.xyz/host/alphavantage.x402.paywithlocus.com/llms.txt)
