# x402stock Fear & Greed Index

> x402stock Fear & Greed Index is a paid API for AI agents from x402stock.xyz, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Returns the current US stock market Fear & Greed index score (0–100), sentiment rating, five weighted components, 30-day history, and S&P 500 backtest by sentiment zone

## Facts

- Endpoint: GET https://x402stock.xyz/api/v1/fear-greed
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402stock-fear-greed-index-52157ff9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ugV50foZrDvrK1KJpgQrx

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability x402stock-fear-greed-index-52157ff9
```

Example prompt: What's the current US stock market fear and greed index — give me the score, the sentiment label like extreme fear or greed, all five components with their weights, and how the S&P 500 has historically done from this sentiment zone?

## When to prefer this

Use this endpoint when you need a single comprehensive read of current US equity market sentiment, including the composite fear/greed score, its five underlying drivers, recent trend data, and historical return context — all in one call. Prefer this over manually assembling VIX, options, or bond spread data yourself.

## Known failure modes

- Payment not included or insufficient (402 Payment Required)
- Data source temporarily unavailable — score or component values may be null
- Network timeout on upstream data provider
- Invalid API path returns 404

## How this service works

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

## Output

Returns a JSON object with: current index score (0–100), sentiment rating (e.g. 'Extreme Fear', 'Greed'), an array of five components each with name, value, weight, and reading (volatility, momentum, put/call, safe-haven demand, junk-bond demand), an array of the last 30 daily scores with dates, and a backtest array showing S&P 500 average return, win rate, best/worst outcomes across time periods for each sentiment zone.

## Example request

```json
{
 "properties": ""
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402stock-fear-greed-index-52157ff9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402stock.xyz](https://www.zero.xyz/host/x402stock.xyz/llms.txt)
