# Crypto Market Stress Score

> Crypto Market Stress Score is a paid API for AI agents from kr-x402-mvp.kgy5612.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-31).

Returns a composite 0-100 market-stress score with label and per-leg breakdown across stablecoins, price/breadth, leverage, volatility, and sentiment for crypto markets

## Facts

- Endpoint: GET https://kr-x402-mvp.kgy5612.workers.dev/crypto/market-risk?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/crypto-market-stress-score-a6cd0267
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oLJxcBqCq7C61wZSFMvnd

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 crypto-market-stress-score-a6cd0267
```

Example prompt: Before I add to my BTC position, can you check the current crypto market stress score and tell me if anything looks broken — especially leverage levels and whether stablecoins are still pegged?

## When to prefer this

Choose this endpoint when you need a single aggregated crypto market risk signal that combines five orthogonal dimensions (stablecoins, price breadth, leverage, volatility, sentiment) into one actionable score, rather than calling five separate data sources and aggregating yourself. Ideal for trading bots needing a pre-trade risk gate, autonomous agents that need to make leverage decisions, or dashboards that want a human-readable stress label and recommended action in one call. Prefer over raw Fear & Greed feeds or individual funding rate APIs when you need holistic, multi-factor risk assessment at low cost ($0.002 per call).

## Known failure modes

- Payment required (402) if USDC payment header is missing or insufficient
- Upstream data unavailability from Hyperliquid, Binance, or DefiLlama could cause stale or partial leg data
- Rate limiting if called too frequently without valid payment
- Network timeout from Cloudflare Worker if upstream APIs are slow
- Returned 'updated_at' timestamp may lag real-time by minutes if cache is serving stale data

## How this service works

Is anything breaking in crypto right now? One composite 0-100 market-stress score (low|moderate|elevated|high) with a per-leg breakdown: stablecoins (worst USDC/USDT/DAI peg deviation in bps + 7d supply flow), price & breadth (BTC 24h move + share of ~140 liquid Hyperliquid perps that are up), leverage (BTC funding APR + share of perps at extreme funding), volatility (BTC 1h ATR14 as % of price) and sentiment (Fear & Greed).

## Output

A JSON object with a composite stress score (0-100), a label (low/moderate/elevated/high), an action recommendation string, the main driver leg, a boolean 'anything_breaking' flag, suggested max leverage, a list of reason strings, and a per-leg breakdown (stablecoins, price_breadth, leverage, volatility, sentiment) each with their own stress sub-score, weight, and raw metrics such as BTC funding APR, advance ratio, peg deviation in bps, ATR percentage, and Fear & Greed value.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "legs": {
   "leverage": {
    "stress": 22,
    "weight": 0.2,
    "btc_funding_apr_pct": 10.9,
    "btc_open_interest_usd": 2400000000,
    "share_perps_extreme_funding": 0.1
   },
   "sentiment": {
    "stress": 32,
    "weight": 0.15,
    "fear_greed": {
     "label": "Fear",
     "value": 34
    },
    "market_cap_change_24h_pct": -0.98
   },
   "volatility": {
    "source": "binance",
    "stress": 20,
    "weight": 0.15,
    "btc_atr14_1h_pct": 0.54
   },
   "stablecoins": {
    "stress": 4,
    "weight": 0.25,
    "verdict": "ALL_PEGGED",
    "worst_peg": {
     "symbol": "USDT",
     "peg_dev_bps": -3.1
    },
    "supply_7d_pct": 0.4
   },
   "price_breadth": {
    "stress": 38,
    "weight": 0.25,
    "liquid_perps": 140,
    "advance_ratio": 0.31,
    "btc_change_24h_pct": -1.2
   }
  },
  "label": "moderate",
  "score": 31,
  "action": "trade normally but keep stops; avoid adding leverage into the main driver",
  "reasons": [
   "USDT -3.1 bps vs $1, stablecoin supply +0.4% 7d"
  ],
  "sources": [
   "https://stablecoins.llama.fi",
   "https://api.hyperliquid.xyz/info"
  ],
  "legs_used": 5,
  "updated_at": "2026-10-30T06:30:00Z",
  "main_driver": "sentiment",
  "anything_breaking": false,
  "suggested_max_leverage": 3
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/crypto-market-stress-score-a6cd0267/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from kr-x402-mvp.kgy5612.workers.dev](https://www.zero.xyz/host/kr-x402-mvp.kgy5612.workers.dev/llms.txt)
