# Crypto Correlation & Beta API (n0brains)

> Crypto Correlation & Beta API (n0brains) is a paid API for AI agents from api.n0brains.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Returns real-time correlation coefficients and beta values for any cryptocurrency vs BTC and ETH, plus the most-correlated peer coins

## Facts

- Endpoint: GET https://api.n0brains.com/x402/correlation/:var1
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/crypto-correlation-beta-api-n0brains-21ba1fd1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_apiu208yA6p9Fvi-F_Qoa

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-beta-api-n0brains-21ba1fd1
```

Example prompt: What's the real-time correlation and beta for SOL versus BTC and ETH, and which coins are most correlated to it right now?

## When to prefer this

Use this endpoint when you need real-time statistical correlation and beta metrics for a specific cryptocurrency against BTC and ETH, or when identifying correlated peer coins for pair trading, portfolio hedging, or diversification analysis. Prefer this over generic market data APIs when the specific output needed is correlation coefficients and relative beta rather than price, volume, or OHLCV data.

## Known failure modes

- Unknown or unsupported coin ticker returns error or empty result
- Payment of 0.005 USDC not provided results in 402 Payment Required
- Malformed query parameter returns 400 Bad Request
- Network or data feed outage may return 503 or timeout

## How this service works

Real-time crypto correlation for any coin — correlation and beta vs BTC and ETH plus the most-correlated peers. For pair trades, hedging, portfolio risk and diversification. Not financial advice.

## Output

Returns the coin ticker queried, its correlation coefficient to BTC, its correlation coefficient to ETH, its beta values vs both, a ranked list of most-correlated peer cryptocurrencies, and a disclaimer that this is not financial advice.

## 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"
    },
    "pathParams": {
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "coin"
     ],
     "properties": {
      "coin": {
       "type": "string",
       "description": "ticker, e.g. BTC"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "coin": {
       "type": "string"
      },
      "to_btc": {
       "type": "number"
      },
      "to_eth": {
       "type": "number"
      },
      "disclaimer": {
       "type": "string"
      },
      "most_correlated": {
       "type": "array"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/crypto-correlation-beta-api-n0brains-21ba1fd1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.n0brains.com](https://www.zero.xyz/host/api.n0brains.com/llms.txt)
