# b0x402 DeFi Sentiment Analysis

> b0x402 DeFi Sentiment Analysis is a paid API for AI agents from x402-cf-worker.mulberry-boar.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Returns AI-generated DeFi market sentiment signal (bullish/bearish/neutral) with confidence score for a given topic like 'base' or 'defi'

## Facts

- Endpoint: GET https://x402-cf-worker.mulberry-boar.workers.dev/v1/defi-sentiment
- 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/b0x402-defi-sentiment-analysis-8786bb0e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iBx4wvlVcuFvhvJbx2doE

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 b0x402-defi-sentiment-analysis-8786bb0e
```

Example prompt: What's the current AI sentiment signal for the Base DeFi market — is it bullish, bearish, or neutral, and how confident is the model?

## When to prefer this

Use this endpoint when you need a quick, AI-generated sentiment classification for a DeFi market topic (especially Base chain) with a quantified confidence score, and you are operating in a pay-per-call x402 USDC micropayment context. Prefer over manual scraping or general LLM queries when you want a structured, timestamped, enumerated signal.

## Known failure modes

- Invalid topic query param returns default 'base' topic
- Payment not provided or failed x402 payment flow returns 402 Payment Required
- Service unavailable on Cloudflare Worker returns 5xx error
- Empty or malformed response if upstream AI inference fails

## How this service works

AI-powered crypto intelligence — meme coin signals, DeFi sentiment, market equilibrium, wallet profiling. Pay per call in USDC on Base via the x402 standard.

## Output

Returns a sentiment classification enum ('bullish', 'bearish', or 'neutral'), a confidence score between 0 and 1, and an ISO timestamp indicating when the signal was generated.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "topic": {
       "type": "string",
       "default": "base",
       "description": "Market topic filter (e.g. 'base', 'defi')"
      }
     },
     "additionalProperties": true
    }
   },
   "additionalProperties": true
  },
  "output": {
   "type": "object",
   "required": [
    "signal",
    "score",
    "timestamp"
   ],
   "properties": {
    "score": {
     "type": "number",
     "description": "Confidence score (0..1)"
    },
    "signal": {
     "enum": [
      "bullish",
      "bearish",
      "neutral"
     ],
     "type": "string",
     "description": "Sentiment classification"
    },
    "timestamp": {
     "type": "string",
     "description": "ISO timestamp"
    }
   },
   "additionalProperties": true
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "score": 0.5,
 "signal": "neutral",
 "timestamp": "ISO"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/b0x402-defi-sentiment-analysis-8786bb0e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-cf-worker.mulberry-boar.workers.dev](https://www.zero.xyz/host/x402-cf-worker.mulberry-boar.workers.dev/llms.txt)
