# CoinCap MACD Technical Analysis

> CoinCap MACD Technical Analysis is a paid API for AI agents from rest.coincap.io, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-13).

Returns the Moving Average Convergence Divergence (MACD) technical indicator for a given cryptocurrency asset slug

## Facts

- Endpoint: GET https://rest.coincap.io/v3/agentFriendly/ta/%7Bslug%7D/macd
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coincap-macd-technical-analysis-8335a241
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uzIes0NL_X6kCUtFw_CZM

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 coincap-macd-technical-analysis-8335a241
```

Example prompt: Can you pull the MACD technical indicator for bitcoin from CoinCap so I can see whether there's a bullish or bearish signal right now?

## When to prefer this

Use this endpoint when you need MACD technical analysis for a specific cryptocurrency asset without requiring a pre-registered API key — the x402 per-call USDC payment model on Base makes it ideal for autonomous agents that need on-demand technical indicator data. Prefer it over building your own MACD calculation when you want authoritative, pre-computed values from a trusted crypto data provider.

## Known failure modes

- Invalid or unknown asset slug returns an error or empty result
- Payment failure via x402 if USDC balance is insufficient or Base network is congested
- Rate limiting if API key quota is exceeded
- Network timeout for slow or unavailable upstream data

## How this service works

CoinCap gives AI agents, apps, and developers real-time cryptocurrency market data.

Two ways to access:
- **API key** — sign up at https://coincap.io and pass `Authorization: Bearer <key>` or `?apiKey=<key>`.
- **Keyless x402** (agents) — the 10 `agentFriendly` endpoints accept per-call USDC payment on Base via the [x402 protocol](https://x402.gitbook.io/x402). No signup needed. See `/.well-known/x402.json` for the machine-readable payment catalog.

## Output

Returns MACD technical indicator data for the specified cryptocurrency asset, including the MACD line, signal line, and histogram values used to assess trend direction and momentum

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coincap-macd-technical-analysis-8335a241/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from rest.coincap.io](https://www.zero.xyz/host/rest.coincap.io/llms.txt)
