Agent402 / tools / crypto-indicators

Crypto technical indicators

$0.005 per call · USDC via x402 · POST /api/crypto-indicators

Technical indicators for one perpetual computed deterministically from Hyperliquid candles: RSI(14), MACD(12,26,9) with signal and histogram, EMA 20/50/200, SMA 20/50, Bollinger(20,2) with bandwidth and %B, ATR(14) and window VWAP. Returns the latest value of each, the last N series points (points, max 100), and a plain summary (trend vs EMA50, RSI zone, MACD cross on the latest bar). interval 1m to 1M, limit = candles used (default 200, max 500). Choose a subset with indicators. No key, no LLM.

TRY IN PLAYGROUND →

Input

FieldTypeDescription
coin *stringPerp ticker, e.g. BTC, ETH, SOL.
intervalstringCandle interval (default 1h): 1m 3m 5m 15m 30m 1h 2h 4h 8h 12h 1d 3d 1w 1M.
limitnumberCandles to compute over (default 200, max 500). EMA200 needs 200, MACD 34, RSI/ATR 15, SMA/Bollinger 20.
indicatorsarrayOptional subset of: rsi, macd, ema, sma, bollinger, atr, vwap (default all).
pointsnumberSeries points to return per indicator, newest last (default 20, max 100).

Example output

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

Try it - see the 402 challenge (free)

curl -i -X POST https://agent402.tools/api/crypto-indicators \
  -H "Content-Type: application/json" \
  -d '{"coin":"BTC","interval":"1h","limit":200,"points":5}'

The response is HTTP 402 Payment Required with exact payment requirements. Any x402 v2 client pays automatically and retries:

Paid call (JavaScript agent)

import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client();
registerExactEvmScheme(client, { signer: privateKeyToAccount(KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);

const res = await payFetch("https://agent402.tools/api/crypto-indicators", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "coin": "BTC",
    "interval": "1h",
    "limit": 200,
    "points": 5
  }),
});
Wallet-only. This tool reaches the network/browser/storage, so it is paid in USDC via x402 (no proof-of-work tier).

Related tools

Crypto order book

$0.003 · GET /api/crypto-orderbook

L2 order-book snapshot for a spot pair: best bid/ask, mid price, spread (absolute + %), and the top N aggregated price l…

try in playground →

Stablecoin peg monitor

$0.003 · GET /api/stablecoin-peg

Live $1-peg deviation for the top USD stablecoins (USDT, USDC, USDS, DAI, USDe, PYUSD, USDD, TUSD, FDUSD by default, or …

try in playground →

Wallet balance (native + ERC-20)

$0.002 · POST /api/wallet-balance

Look up the native coin balance (ETH/MATIC) plus every ERC-20 holding for a wallet address on Ethereum, Base, Polygon, A…

try in playground →