# Agent402 Crypto Technical Indicators

> Agent402 Crypto Technical Indicators is a paid API for AI agents from agent402.tools, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-11).

Computes RSI, MACD, EMA, SMA, Bollinger Bands, ATR, and VWAP for any crypto perpetual ticker over a specified interval and window, with a plain-English trend summary.

## Facts

- Endpoint: POST https://agent402.tools/api/crypto-indicators?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-crypto-technical-indicators-6f9eb0ea
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_p_gASrdvpU46OUBVWPR-i

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 agent402-crypto-technical-indicators-6f9eb0ea -d '<json body>'
```

Example prompt: Pull the full suite of technical indicators — RSI, MACD, EMA, Bollinger Bands, ATR, and VWAP — for BTC on the 4h interval using 200 candles and return the last 20 data points per indicator, with the plain-English trend summary.

## When to prefer this

Choose this endpoint when you need a comprehensive set of standard technical indicators (RSI, MACD, EMA, SMA, Bollinger Bands, ATR, VWAP) for crypto perpetual markets in a single call, especially when no API key is available and payment-per-call via USDC wallet is acceptable. Prefer it over building your own TA pipeline when you want a pre-computed plain-English trend summary alongside raw series data. It is particularly suited for agents automating trading decisions, generating market reports, or screening assets by momentum and volatility signals on Hyperliquid perp markets.

## Known failure modes

- Invalid ticker symbol returns error — only Hyperliquid perpetual tickers are supported
- Interval string not in allowed set (1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 8h, 12h, 1d, 3d, 1w, 1M) returns validation error
- Limit exceeding 500 or points exceeding 100 returns validation error
- Insufficient candle history for requested limit on low-liquidity pairs may return partial data or error
- Payment failure over x402/USDC results in 402 response before computation
- Hyperliquid data source unavailable causes upstream timeout or 503

## How this service works

RSI, MACD, EMA 20/50/200, SMA 20/50, Bollinger bands, ATR and VWAP computed deterministically from live candles for one coin and interval, with the latest series points and a plain-language summary. Use it when an agent needs standard technical indicators without fetching candles and computing them itself.

## Output

A JSON object containing the coin ticker, data source (Hyperliquid), candle window timestamps, number of candles fetched, interval, last close price, a plain-English summary with trend direction, RSI zone, and MACD cross/histogram status, plus per-indicator objects each containing current value(s) and a time-series array (newest last) for RSI, MACD (with signal and histogram), EMA (20/50/200), SMA (20/50), Bollinger Bands (upper/middle/lower/percentB/bandwidthPct), ATR (with pctOfClose), and VWAP.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "coin": {
   "type": "string",
   "description": "Perp ticker, e.g. BTC, ETH, SOL."
  },
  "limit": {
   "type": "number",
   "description": "Candles to compute over (default 200, max 500). EMA200 needs 200, MACD 34, RSI/ATR 15, SMA/Bollinger 20."
  },
  "ohlcv": {
   "type": "number",
   "description": "Also return the last N OHLCV candles, newest last (default 0 = none, max 100)."
  },
  "points": {
   "type": "number",
   "description": "Series points to return per indicator, newest last (default 20, max 100)."
  },
  "interval": {
   "type": "string",
   "description": "Candle interval (default 1h): 1m 3m 5m 15m 30m 1h 2h 4h 8h 12h 1d 3d 1w 1M."
  },
  "indicators": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "Optional subset of: rsi, macd, ema, sma, bollinger, atr, vwap (default all)."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "coin": "BTC",
  "source": "hyperliquid",
  "window": {
   "to": "2026-08-22T12:00:00.000Z",
   "from": "2026-08-14T05:00:00.000Z"
  },
  "candles": 200,
  "summary": {
   "text": "BTC 1h: close above EMA50, RSI 56.2 (neutral), MACD histogram positive, no cross on the latest bar.",
   "trend": "above",
   "rsiZone": "neutral",
   "macdCross": "none",
   "macdHistogram": "positive"
  },
  "interval": "1h",
  "fetchedAt": "2026-08-22T12:05:00.000Z",
  "lastClose": 77244,
  "indicators": {
   "atr": {
    "value": 410.2,
    "period": 14,
    "series": [
     {
      "t": "2026-08-22T12:00:00.000Z",
      "v": 410.2
     }
    ],
    "pctOfClose": 0.53
   },
   "ema": {
    "ema20": 77100.2,
    "ema50": 76800.4,
    "ema200": 75900.1,
    "series": [
     {
      "t": "2026-08-22T12:00:00.000Z",
      "ema20": 77100.2,
      "ema50": 76800.4,
      "ema200": 75900.1
     }
    ]
   },
   "rsi": {
    "value": 56.21,
    "period": 14,
    "series": [
     {
      "t": "2026-08-22T12:00:00.000Z",
      "v": 56.21
     }
    ]
   },
   "sma": {
    "sma20": 77050.3,
    "sma50": 76750.9,
    "series": [
     {
      "t": "2026-08-22T12:00:00.000Z",
      "sma20": 77050.3,
      "sma50": 76750.9
     }
    ]
   },
   "macd": {
    "fast": 12,
    "slow": 26,
    "value": 120.5,
    "series": [
     {
      "t": "2026-08-22T12:00:00.000Z",
      "macd": 120.5,
      "signal": 98.2,
      "histogram": 22.3
     }
    ],
    "signal": 9,
    "histogram": 22.3,
    "signalValue": 98.2
   },
   "vwap": {
    "value": 76990.7,
    "series": [
     {
      "t": "2026-08-22T12:00:00.000Z",
      "v": 76990.7
     }
    ]
   },
   "bollinger": {
    "mult": 2,
    "lower": 76200.5,
    "upper": 77900.1,
    "middle": 77050.3,
    "period": 20,
    "series": [
     {
      "t": "2026-08-22T12:00:00.000Z",
      "lower": 76200.5,
      "upper": 77900.1,
      "middle": 77050.3
     }
    ],
    "percentB": 0.61,
    "bandwidthPct": 2.2
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-crypto-technical-indicators-6f9eb0ea/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
