81trust / 100

Fear Greed History

by x402stock.xyz in Markets & finance

x402 APIPassing, checked 50 min ago

The full daily history of the US stock Fear & Greed index from 2016 to today, each point a date and 0–100 score. Pass `?days=N` to return only the most recent N days (default: full series). Use for charting sentiment regimes and backtesting against price. Companion to /api/v1/fear-greed (current reading). From x402stock, a market & economic data API (x402, USDC).

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

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
236 ms typical, 236 ms slowest 5%
Last check
50 min 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/history?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%2Fhistory
const res = await pay("https://x402stock.xyz/api/v1/fear-greed/history?days=90");
console.log(await res.json());

Example input

{
  "days": 90
}

Example output

{
  "as_of": "2026-06-05T00:00:00.000Z",
  "count": 2,
  "history": [
    {
      "date": "2016-01-04",
      "score": 42
    },
    {
      "date": "2026-06-04",
      "score": 64
    }
  ],
  "index": "us_stock",
  "source": "x402stock"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
50 min agoPassed402236 ms$0.02
6 h agoPassed402236 ms$0.02