81trust / 100

Crypto Indicators

by Crypto technical indicators in Onchain & crypto

x402 APIPassing, checked 39 min ago

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.

POST https://agent402.tools/api/crypto-indicators

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
190 ms typical, 190 ms slowest 5%
Last check
39 min ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://agent402.tools/api/crypto-indicators" \
  -H "content-type: application/json" \
  -d '{"coin":"BTC","interval":"1h","limit":200,"points":5}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagent402.tools%2Fapi%2Fcrypto-indicators
const res = await pay("https://agent402.tools/api/crypto-indicators", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"coin":"BTC","interval":"1h","limit":200,"points":5}),
});
console.log(await res.json());

Example input

{
  "coin": "BTC",
  "interval": "1h",
  "limit": 200,
  "points": 5
}

Example output

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

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
39 min agoPassed402195 ms$0.002
6 h agoPassed402190 ms$0.002