# Carbon & Cashmere Oracle Divergence API

> Carbon & Cashmere Oracle Divergence API is a paid API for AI agents from api.carbon-cashmere.de, paid per call via x402, $0.03/call, status down (last checked 2026-09-08).

Returns real-time oracle price divergence statistics between Pyth and CoinGecko for a given cryptocurrency, including spread percentiles, exceedance rates, and timestamped divergence events.

## Facts

- Endpoint: GET https://api.carbon-cashmere.de/v1/oracle-divergence/%7Bcoin%7D
- Price: $0.03/call
- Payment: x402
- Status: down
- Last checked: 2026-09-08
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/carbon-cashmere-oracle-divergence-api-d8d2c208
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4Fur8JlvvOFbb_a0xf9-q

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 carbon-cashmere-oracle-divergence-api-d8d2c208
```

Example prompt: Show me the Pyth vs CoinGecko oracle divergence stats for BTC — I want to see the spread percentiles, how often prices exceeded the threshold in the last 60 minutes, and any recent divergence events.

## When to prefer this

Use this endpoint when you need to verify the consistency or reliability of oracle price data across Pyth and CoinGecko for a specific coin, detect arbitrage signals driven by oracle lag, assess data quality before executing DeFi strategies, or monitor whether a coin's oracle feeds are diverging beyond acceptable thresholds in real time.

## Known failure modes

- Unknown or unsupported coin symbol returns 404 or empty dataset
- Insufficient price history for the lookback window returns low sample count or error
- Oracle source unavailable causes partial data or timeout
- Invalid threshold_pct parameter causes 400 bad request
- Network timeout from upstream Pyth or CoinGecko feeds causes 503

## How this service works

Professional crypto market intelligence. Real-time prices, signals, and market scoring.

## Output

A JSON object containing: coin identifier, aggregate spread statistics (p25, p75, median, abs_max, abs_p95 as percentages), exceedance rate, count of threshold-exceeding samples, an array of timestamped divergence events (each with direction, Pyth price, CoinGecko price, spread pct, Pyth confidence), and the latest price snapshot from both oracles.

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "coin": "BTC",
  "stats": {
   "samples": 12,
   "spread_pct": {
    "p25": -0.082,
    "p75": 0.047,
    "median": -0.024,
    "abs_max": 0.6532,
    "abs_p95": 0.5071
   },
   "exceedance_rate": 0.333,
   "exceeded_threshold": 4
  },
  "events": [
   {
    "ts": "2026-05-09T20:43:23Z",
    "direction": "pyth_lower",
    "pyth_price": 0.42316693,
    "spread_pct": -0.6532,
    "coingecko_price": 0.425931,
    "pyth_confidence": 0.000414
   }
  ],
  "filter": {
   "threshold_pct": 0.001,
   "lookback_minutes": 60
  },
  "latest": {
   "ts": "2026-05-09T20:48:23Z",
   "pyth_price": 80781.71,
   "spread_pct": -0.0227,
   "coingecko_price": 80800
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/carbon-cashmere-oracle-divergence-api-d8d2c208/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.carbon-cashmere.de](https://www.zero.xyz/host/api.carbon-cashmere.de/llms.txt)
