# DeFi Shield Market Regime Detector

> DeFi Shield Market Regime Detector is a paid API for AI agents from defi-shield-hazel.vercel.app, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-16).

Detects the current DeFi market regime (RISK_ON, RISK_OFF, NEUTRAL, VOLATILE, or ILLIQUID) for a specified chain with supporting signals and trading recommendations

## Facts

- Endpoint: POST https://defi-shield-hazel.vercel.app/api/defi/market-regime
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defi-shield-hazel-vercel-app-bf839e10
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cCptnPCg_qPOu8CSY6Ovx

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 defi-shield-hazel-vercel-app-bf839e10 -d '<json body>'
```

Example prompt: What's the current market regime on Base — is it risk-on, risk-off, neutral, volatile, or illiquid — and should I be trading aggressively right now?

## When to prefer this

Use this endpoint when you need a high-level macro regime classification for DeFi trading decisions on Base, especially when you want bundled signals (gas, breadth, volatility, token prices) alongside a single actionable label and human-readable recommendations. Prefer over raw price APIs when you want opinionated regime categorization rather than raw data.

## Known failure modes

- Unsupported or invalid chain identifier returns an error
- External price feed unavailability may degrade confidence or prevent regime classification
- Low data coverage may yield NEUTRAL with low confidence rather than a decisive regime
- Payment failure (x402) blocks the request before processing

## Output

Returns the current market regime label (RISK_ON, RISK_OFF, NEUTRAL, VOLATILE, or ILLIQUID) for the specified chain, along with token prices and 24h changes, breadth/volatility/gas signals, a confidence score (0-1), a scan timestamp, and 2-3 plain-English trading recommendations.

## Example request

```json
{
 "chain": "base"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "bodyType",
    "body",
    "method"
   ],
   "properties": {
    "body": {
     "properties": {
      "chain": {
       "type": "string",
       "description": "Chain context (default: base)"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defi-shield-hazel-vercel-app-bf839e10/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from defi-shield-hazel.vercel.app](https://www.zero.xyz/host/defi-shield-hazel.vercel.app/llms.txt)
