# Crypto Correlation vs Benchmark (x402)

> Crypto Correlation vs Benchmark (x402) is a paid API for AI agents from x402-stock-indicators.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-12).

Returns the rolling 90-day price correlation between a crypto asset and a benchmark index (e.g. QQQ), paid per-call via USDC over the x402 protocol.

## Facts

- Endpoint: GET https://x402-stock-indicators.vercel.app/crypto-correlation/%7Bsymbol%7D
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/crypto-correlation-vs-benchmark-x402-4b834de3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3c756X84mOCGFI9CuChkB

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 crypto-correlation-vs-benchmark-x402-4b834de3
```

Example prompt: What's the 90-day price correlation between ETH and QQQ right now — is it positively correlated, negatively, or basically independent?

## When to prefer this

Choose this endpoint when you need a quantitative, ready-to-use correlation metric between a specific crypto asset and an equity benchmark without setting up API keys or subscriptions — ideal for on-demand portfolio analysis, macro regime checks, or agent workflows where pay-per-call USDC micropayments via x402 are preferable to recurring SaaS billing.

## Known failure modes

- Unknown or unsupported crypto symbol returns an error or null correlation
- Payment not received / x402 handshake fails — call returns 402 Payment Required
- Insufficient price history for the symbol results in a low sample_size or null
- Benchmark symbol not recognized returns an error
- CoinGecko data unavailable for the requested asset

## How this service works

Pay-per-call stock, macro, on-chain, and crypto data over the x402 protocol. USDC on Base or Solana, no API keys, no subscriptions.

## Output

A JSON object containing the correlation coefficient (e.g. 0.51), a human-readable interpretation ('moderate positive', 'weak negative', etc.), the benchmark used, the crypto symbol and its CoinGecko ID, the number of trading days sampled, the lookback window in days, and the as-of timestamp of the calculation.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "days": 90,
  "note": null,
  "as_of": "2026-08-09T12:00:00Z",
  "symbol": "ETH",
  "benchmark": "QQQ",
  "correlation": 0.5124,
  "sample_size": 62,
  "coingecko_id": "ethereum",
  "interpretation": "moderate positive"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/crypto-correlation-vs-benchmark-x402-4b834de3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-stock-indicators.vercel.app](https://www.zero.xyz/host/x402-stock-indicators.vercel.app/llms.txt)
