# Carbon & Cashmere Cointegration Analysis API

> Carbon & Cashmere Cointegration Analysis API is a paid API for AI agents from api.carbon-cashmere.de, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-15).

Returns statistical cointegration metrics for a crypto pair including Engle-Granger test results, spread z-score, beta coefficient, and mean-reversion half-life

## Facts

- Endpoint: GET https://api.carbon-cashmere.de/v1/cointegration/%7Bpair%7D
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/carbon-cashmere-cointegration-analysis-api-65cda74b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Bb3bB6yTZZvcvIPpkoufZ

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-cointegration-analysis-api-65cda74b
```

Example prompt: Run a cointegration test on the BTC-ETH pair and tell me if they're statistically cointegrated at the 5% level, along with the current spread z-score and how many days it takes to mean-revert.

## When to prefer this

Use this endpoint when you need rigorous statistical validation of a pairs-trading hypothesis between two crypto assets — specifically when you need Engle-Granger cointegration test results, spread z-scores, and mean-reversion half-life rather than simple correlation. Prefer over generic price endpoints when the goal is quantitative strategy validation.

## Known failure modes

- Invalid or unsupported pair symbol returns an error
- Insufficient historical data for the pair may yield unreliable statistics
- Malformed pair format (not BASE-QUOTE) returns 400
- Payment not included or insufficient USDC returns 402
- Rate limiting if too many requests in short window

## How this service works

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

## Output

A JSON object containing: base and quote asset identifiers, Engle-Granger test statistic and p-value with critical values, current spread value and z-score, beta coefficient, lookback period in days, ADF p-value for mean reversion, mean-reversion half-life in days, and boolean flags for cointegration at 5% and 10% significance levels.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "base": "BTC",
  "pair": "BTC-ETH",
  "_meta": {
   "disclaimer": "Informational research data only — not investment advice."
  },
  "quote": "ETH",
  "spread": {
   "current": 0.023,
   "zscore_current": 1.42,
   "beta_coefficient": 0.89
  },
  "engle_granger": {
   "p_value": 0.012,
   "test_statistic": -3.42,
   "critical_values": {
    "5pct": -3.38
   }
  },
  "lookback_days": 90,
  "mean_reversion": {
   "adf_p_value": 0.018,
   "half_life_days": 4.2
  },
  "is_cointegrated_at_5pct": true,
  "is_cointegrated_at_10pct": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/carbon-cashmere-cointegration-analysis-api-65cda74b/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)
