# x402stock Crypto Fear & Greed Index with BTC/ETH Prices

> x402stock Crypto Fear & Greed Index with BTC/ETH Prices is a paid API for AI agents from x402stock.xyz, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Returns the current Crypto Fear & Greed score (0–100) with rating, US stock Fear & Greed score for comparison, BTC and ETH prices with 24h change, and up to 90+ days of crypto sentiment history.

## Facts

- Endpoint: GET https://x402stock.xyz/api/v1/fear-greed/crypto
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402stock-crypto-fear-greed-index-with-btc-eth-prices-2de0522e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fSOp48gGGX57nnwcrmzk1

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-crypto-fear-greed-index-with-btc-eth-prices-2de0522e
```

Example prompt: What's the current crypto fear and greed score and rating, how does it compare to the US stock market sentiment, and can you also pull BTC and ETH prices with their 24-hour change? Give me the last 30 days of crypto sentiment history too.

## When to prefer this

Use this endpoint when you need crypto market sentiment (Fear & Greed) alongside current BTC/ETH prices and historical sentiment data in a single call — especially when you also want to compare crypto sentiment to US stock market sentiment. Prefer this over the stock-only /api/v1/fear-greed endpoint when the use case is crypto-focused or requires both markets for comparison.

## Known failure modes

- Invalid `days` value (<=0 or non-integer) returns a 400 or validation error
- days exceeding 3650 may be rejected or capped
- Payment not provided or insufficient USDC via x402 returns 402 Payment Required
- Upstream data source unavailability may return null values for score/price fields
- Network timeout for slow upstream data aggregation

## How this service works

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).

## Output

Returns a JSON object with: `source` (x402stock), `as_of` timestamp, `crypto` object with numeric score (0–100) and text rating (e.g. 'Extreme Fear', 'Greed'), `stock` object with numeric fear & greed score for comparison, `prices` map keyed by symbol (BTC, ETH) each with current price, 24h change, and 24h change percent, and `history` array of {date, score} objects covering the requested number of days.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "days": 30
  }
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "required": [
      "days"
     ],
     "properties": {
      "days": {
       "type": "integer",
       "default": 90,
       "maximum": 3650,
       "exclusiveMinimum": 0
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "required": [
      "source",
      "as_of",
      "crypto",
      "stock",
      "prices",
      "history"
     ],
     "properties": {
      "as_of": {
       "type": "string"
      },
      "stock": {
       "type": "object",
       "required": [
        "score"
       ],
       "properties": {
        "score": {
         "anyOf": [
          {
           "type": "number"
          },
          {
           "type": "null"
          }
         ]
        }
       },
       "additionalProperties": false
      },
      "crypto": {
       "type": "object",
       "required": [
        "score",
        "rating"
       ],
       "properties": {
        "score": {
         "anyOf": [
          {
           "type": "number"
          },
          {
           "type": "null"
          }
         ]
        },
        "rating": {
         "anyOf": [
          {
           "type": "string"
          },
          {
           "type": "null"
          }
         ]
        }
       },
       "additionalProperties": false
      },
      "prices": {
       "type": "object",
       "propertyNames": {
        "type": "string"
       },
       "additionalProperties": {
        "type": "object",
        "required": [
         "price",
         "change",
         "change_percent"
        ],
        "properties": {
         "price": {
          "anyOf": [
           {
            "type": "number"
           },
           {
            "type": "null"
           }
    
… (truncated)
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402stock-crypto-fear-greed-index-with-btc-eth-prices-2de0522e/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)
