# SwapHunt Market Sentiment Summary

> SwapHunt Market Sentiment Summary is a paid API for AI agents from x402.swaphunt.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-14).

Returns an aggregated market sentiment label (strong_bearish to strong_bullish) with a normalized score, computed from LLM-scored news over a configurable lookback window.

## Facts

- Endpoint: GET https://x402.swaphunt.dev/v1/sentiment/summary
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/swaphunt-market-sentiment-summary-0cd75892
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_P1LFuX4-VrvTW53NJs56o

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 swaphunt-market-sentiment-summary-0cd75892
```

Example prompt: What's the current overall market sentiment? Give me the aggregated sentiment label and score based on the last 48 hours of crypto news.

## When to prefer this

Use this endpoint when an agent needs a single, pre-computed sentiment verdict rather than individual article scores. Ideal for trading bots, dashboards, or decision pipelines that need a fast macro sentiment read without processing raw news feeds. Prefer over individual article endpoints when a summary label suffices.

## Known failure modes

- Invalid hours value returns a 400 error
- Unknown category filter returns a 400 or empty result
- No news available for the requested window returns a neutral score or error
- Payment not included or insufficient USDC results in a 402 Payment Required response

## How this service works

Aggregated market sentiment label (strong_bearish → strong_bullish) with a normalized score, computed from LLM-scored news over the window. One-number mood read for an agent that just needs the verdict, not the individual articles.

## Output

A single sentiment label (e.g. strong_bearish, bearish, neutral, bullish, strong_bullish) plus a normalized numeric score representing the aggregated mood of LLM-scored news articles over the requested time window.

## 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",
     "properties": {
      "hours": {
       "type": "integer",
       "default": 24,
       "description": "Lookback window (hours)"
      },
      "category": {
       "type": "string",
       "default": "all",
       "description": "News category filter"
      }
     }
    }
   },
   "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/swaphunt-market-sentiment-summary-0cd75892/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.swaphunt.dev](https://www.zero.xyz/host/x402.swaphunt.dev/llms.txt)
