X

X402stock · Fear Greed

by X402stock

GETBase

$0.02

per call · USD Coin on Base

The current US stock-market Fear & Greed index (0–100, CNN-style) with its sentiment rating and all five weighted components — volatility, momentum, put/call, safe-haven demand, junk-bond demand — each with value, weight, and reading. Includes the last 30 days of scores and a backtest of S&P 500 forward returns by sentiment zone. A one-call read of market mood. From x402stock

Endpoint

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

1

Calls / 30d

1

Unique payers / 30d

Aug 17

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://x402stock.xyz/api/v1/fear-greed", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://x402stock.xyz/api/v1/fear-greed" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "as_of": "2026-06-05T00:00:00.000Z",
  "backtest": [
    {
      "entries": 31,
      "label": "Extreme Fear (0–20)",
      "periods": [
        {
          "avg_return_percent": 4.37,
          "best_percent": 23.07,
          "period": "1 Month",
          "samples": 30,
          "win_rate_percent": 83,
          "worst_percent": -11.68
        }
      ],
      "zone": "extreme_fear"
    }
  ],
  "components": [
    {
      "description": "VIX vs 20-day average",
      "detail": "VIX 15.4 / MA20 16.9",
      "name": "VOLATILITY",
      "value": 63,
      "weight": 25
    },
    {
      "description": "S&P 500 vs 125-day MA",
      "detail": "SPY 757 / MA125 695",
      "name": "MOMENTUM",
      "value": 77,
      "weight": 25
    }
  ],
  "index": "us_stock",
  "rating": "Greed",
  "recent": [
    {
      "date": "2026-06-04",
      "score": 64
    }
  ],
  "score": 69,
  "source": "x402stock"
}

Payment details

Pay to0x3070fbb3803819fb5bdfe9286fdc6325a877fa85
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Other and the homepage with a featured placement.

Get featured →

More from X402stock & similar services