# Market Mood

> How scared or greedy the US stock market is, from 0 (extreme fear) to 100 (extreme greed), as of the latest close.

Source: https://wiseview.ai/docs/api/market-mood

`GET https://api.wiseview.ai/v1/market/mood`

How scared or greedy the US stock market is, from 0 (extreme fear) to 100 (extreme greed), as of the latest close. Seven measures — momentum, 52-week highs against lows, the breadth of buying, demand for protection, volatility, the run to safety and the appetite for risky debt — are each ranked against their own past year and averaged. Returns the day's reading and zone, each measure's score, the reading at the last close, a week, a month and a year back, and the daily history. Worked out once each weekday evening; WiseView's own measure, so it will not match other fear and greed indexes exactly.

Each call counts against your allowance.

## Parameters

| Name | In | Type | What it does |
| --- | --- | --- | --- |
| `days` | query | whole number, 1–1300 | How many trading days of history, ending on the latest. Leave it out for `30`. |

## Answer

`data`, abridged — real answers carry more fields:

```json
{
  "date": "2026-11-04",
  "score": 38,
  "zone": "fear",
  "label": "Fear",
  "parts": [
    {
      "id": "momentum",
      "question": "Is the market going up?",
      "measure": "How far the S&P 500 sits above or below its 125-day average.",
      "score": 44,
      "zone": "fear"
    },
    {
      "id": "options",
      "question": "Are traders buying protection?",
      "measure": "The VIX against the 3-month VIX, averaged over 5 days.",
      "score": 28,
      "zone": "fear"
    }
  ],
  "compare": {
    "previousClose": {
      "date": "2026-11-03",
      "score": 41,
      "zone": "fear",
      "label": "Fear"
    },
    "weekAgo": {
      "date": "2026-10-28",
      "score": 52,
      "zone": "neutral",
      "label": "Neutral"
    },
    "monthAgo": {
      "date": "2026-10-03",
      "score": 63,
      "zone": "greed",
      "label": "Greed"
    },
    "yearAgo": {
      "date": "2025-11-04",
      "score": 71,
      "zone": "greed",
      "label": "Greed"
    }
  },
  "history": [
    {
      "date": "2026-11-03",
      "score": 41
    },
    {
      "date": "2026-11-04",
      "score": 38
    }
  ],
  "builtAt": "2026-11-05T02:00:41.000Z"
}
```

## Samples

```bash
curl "https://api.wiseview.ai/v1/market/mood" \
  -H "Authorization: Bearer $WISEVIEW_API_KEY"
```

```python
import os
import requests

response = requests.get(
    "https://api.wiseview.ai/v1/market/mood",
    headers={"Authorization": f"Bearer {os.environ['WISEVIEW_API_KEY']}"},
)
response.raise_for_status()
print(response.json())
```

```javascript
const response = await fetch("https://api.wiseview.ai/v1/market/mood", {
  headers: { "Authorization": `Bearer ${process.env.WISEVIEW_API_KEY}` },
});
if (!response.ok) throw new Error(`WiseView answered ${response.status}`);
console.log(await response.json());
```
