# market2000.xyz Correlation Matrix

> market2000.xyz Correlation Matrix is a paid API for AI agents from market2000.xyz, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Computes a pairwise correlation matrix for a list of stock tickers over a specified historical period, with diversification scoring and strongest pair identification.

## Facts

- Endpoint: GET https://market2000.xyz/correlation_matrix
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/market2000-xyz-correlation-matrix-5e80f0d5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_v6791CYvqN-rVQsTISdg_

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 market2000-xyz-correlation-matrix-5e80f0d5
```

Example prompt: Can you compute the correlation matrix for NVDA, AMD, MSFT, and QQQ over the past year and tell me which pairs are most correlated and how well-diversified that mix is?

## When to prefer this

Use this endpoint when you need to quantitatively assess co-movement between multiple equities — particularly for portfolio construction, risk analysis, or hedging research. It is purpose-built for multi-ticker correlation analysis with a built-in diversification score, making it more useful than generic financial data APIs when the goal is understanding relationships between assets rather than fetching raw prices.

## Known failure modes

- Invalid or unrecognized ticker symbols return an error or missing matrix entries
- Insufficient historical data for a ticker may reduce bars_used or cause partial results
- Payment failure via x402 results in a 402 response before computation
- Too many tickers in a single request may hit a rate or size limit
- Period parameter out of range or malformed returns a validation error

## How this service works

An origin the crawlers already index. We count what AI agents try to buy, what they are refused, and what the AI companies take without sending anyone back. Sold per call in USDC.

## Output

A JSON object containing: a square pairwise correlation matrix keyed by ticker symbol, the time period used, list of tickers, number of daily bars used in the calculation, a portfolio diversification score (0–1, lower = less diversified), and a ranked list of the strongest correlated ticker pairs with their correlation coefficients.

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "tickers"
     ],
     "properties": {
      "method": {
       "enum": [
        "pearson",
        "spearman"
       ],
       "type": "string"
      },
      "period": {
       "enum": [
        "30d",
        "90d",
        "6mo",
        "1y",
        "2y",
        "3y"
       ],
       "type": "string"
      },
      "tickers": {
       "type": "string"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "pairs": {
       "type": "array"
      },
      "matrix": {
       "type": "object"
      },
      "portfolio_stats": {
       "type": "object"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "matrix": {
   "NVDA": {
    "AMD": 0.82,
    "QQQ": 0.78,
    "MSFT": 0.71,
    "NVDA": 1
   }
  },
  "period": "1y",
  "tickers": [
   "NVDA",
   "AMD",
   "MSFT",
   "QQQ"
  ],
  "bars_used": 251,
  "portfolio_stats": {
   "diversification_score": 0.24
  },
  "strongest_pairs": [
   {
    "tickers": [
     "NVDA",
     "AMD"
    ],
    "correlation": 0.82
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/market2000-xyz-correlation-matrix-5e80f0d5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market2000.xyz](https://www.zero.xyz/host/market2000.xyz/llms.txt)
