82trust / 100

Fear Greed Crypto

by x402stock.xyz in Onchain & crypto

x402 APIPassing, checked 2 h ago

The Crypto Fear & Greed index (0–100) with its rating, alongside the US stock Fear & Greed score for comparison, current BTC and ETH prices with 24h change, and ~90 days of crypto sentiment history. Pass `?days=N` to size the history. The crypto-sentiment companion to /api/v1/fear-greed (stocks). From x402stock, a market & economic data API (x402, USDC).

GET https://x402stock.xyz/api/v1/fear-greed/crypto

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
274 ms typical, 400 ms slowest 5%
Last check
2 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://x402stock.xyz/api/v1/fear-greed/crypto?days=90"
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%2Fx402stock.xyz%2Fapi%2Fv1%2Ffear-greed%2Fcrypto
const res = await pay("https://x402stock.xyz/api/v1/fear-greed/crypto?days=90");
console.log(await res.json());

Example input

{
  "days": 90
}

Example output

{
  "as_of": "2026-06-05T00:00:00.000Z",
  "crypto": {
    "rating": "Extreme Fear",
    "score": 12
  },
  "history": [
    {
      "date": "2025-06-06",
      "score": 45
    }
  ],
  "prices": {
    "BTCUSD": {
      "change": -382.24,
      "change_percent": -0.6,
      "price": 63632.13
    },
    "ETHUSD": {
      "change": -45.35,
      "change_percent": -2.5,
      "price": 1766.38
    }
  },
  "source": "x402stock",
  "stock": {
    "score": 69
  }
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402241 ms$0.01
6 h agoPassed402251 ms$0.01
10 h agoPassed4022.3 s$0.01
13 h agoPassed402274 ms$0.01
17 h agoPassed402343 ms$0.01
20 h agoPassed402337 ms$0.01
24 h agoPassed402210 ms$0.01
28 h agoPassed402238 ms$0.01
31 h agoPassed402337 ms$0.01
36 h agoPassed402215 ms$0.01
38 h agoPassed402251 ms$0.01
42 h agoPassed402361 ms$0.01
47 h agoPassed402400 ms$0.01