# Crypto Asset Correlation Matrix

> Crypto Asset Correlation Matrix is a paid API for AI agents from api.vextorium.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-13).

Returns a pairwise correlation matrix of daily returns, annualized volatility, and total return for 2–8 crypto assets over a configurable window (up to 2 years), plus the least correlated pair, using DefiLlama prices.

## Facts

- Endpoint: POST https://api.vextorium.com/correlacion-activos-pago?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/crypto-asset-correlation-matrix-b0087b95
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Crs1Ih-80IvpAADtmh3VH

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-asset-correlation-matrix-b0087b95 -d '<json body>'
```

Example prompt: Can you give me the correlation matrix, annualized volatility, and total returns for BTC, ETH, SOL, and AVAX over the last 180 days, and tell me which pair is the least correlated?

## When to prefer this

Choose this endpoint when you need quantitative pairwise correlation analysis across a basket of 2–8 crypto assets with DefiLlama-sourced prices, especially for portfolio diversification, hedging pair identification, or risk reporting. It is preferable over manual computation or general LLM reasoning because it delivers precise daily-return-based correlation matrices, volatility, and return figures in a single call at very low cost ($0.005 USDC).

## Known failure modes

- Invalid ticker symbol not recognized by DefiLlama returns an error or null values
- Fewer than 2 or more than 8 assets provided causes a validation error
- Days parameter outside 14–730 range defaults to 90 or returns a validation error
- Insufficient price history for a newly listed token may produce null or partial results
- Network or DefiLlama data feed unavailability results in a service error

## How this service works

Correlation matrix of daily returns for 2-8 crypto assets over up to 2 years, with each asset's return and annualized volatility and the least correlated pair. For diversification and hedging. Prices from DefiLlama.

## Output

A JSON object containing: (1) the number of days analyzed, (2) per-asset metrics including total return percentage and annualized volatility percentage, (3) a full N×N pairwise correlation matrix where 1 means perfectly correlated and -1 means inversely correlated, and (4) the least correlated pair with their correlation coefficient and a note on data source (DefiLlama).

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "monedas"
     ],
     "properties": {
      "dias": {
       "type": "integer",
       "description": "14-730, default 90"
      },
      "monedas": {
       "type": "string",
       "description": "Comma-separated, e.g. BTC,ETH,SOL"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": [
      "object",
      "null"
     ],
     "properties": {
      "dias": {
       "type": [
        "number",
        "null"
       ]
      },
      "nota": {
       "type": [
        "string",
        "null"
       ]
      },
      "activos": {
       "type": [
        "object",
        "null"
       ],
       "properties": {
        "BTC": {
         "type": [
          "object",
          "null"
         ],
         "properties": {
          "rentabilidad_pct": {
           "type": [
            "number",
            "null"
           ]
          },
          "volatilidad_anual_pct": {
           "type": [
            "number",
            "null"
           ]
          }
         }
        },
        "ETH": {
         "type": [
          "object",
          "null"
         ],
         "properties": {
          "rentabilidad_pct": {
           "type": [
            "number",
            "null"
           ]
          },
          "volatilidad_anual_pct": {
           "type": [
            "number",
            "null"
           ]
          }
         }
        },
        "SOL": {
         "type": [
          "object",
          "null"
         ],
         "properties": {
          "rentabilidad_pct": {
           "type": [
            "number",
            "null"
           ]
          },
          "volatilidad_anual_pct": {
           "type": [
            "number",
            "null"
           ]
          }
         }
        }
       }
      },
      "
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "dias": 91,
  "nota": "1 = se mueven igual, 0 = sin relación, -1 = opuestos. Fuente de precios: DefiLlama.",
  "activos": {
   "BTC": {
    "rentabilidad_pct": 36.32,
    "volatilidad_anual_pct": 39.23
   },
   "ETH": {
    "rentabilidad_pct": 51.64,
    "volatilidad_anual_pct": 48.08
   },
   "SOL": {
    "rentabilidad_pct": 46.61,
    "volatilidad_anual_pct": 54.06
   }
  },
  "correlacion": {
   "BTC": {
    "BTC": 1,
    "ETH": 0.881,
    "SOL": 0.824
   },
   "ETH": {
    "BTC": 0.881,
    "ETH": 1,
    "SOL": 0.767
   },
   "SOL": {
    "BTC": 0.824,
    "ETH": 0.767,
    "SOL": 1
   }
  },
  "par_menos_correlacionado": {
   "a": "ETH",
   "b": "SOL",
   "correlacion": 0.767
  }
 }
}
```

## More

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