Catalog/finance-crypto-correlation

Finance

Crypto correlation matrix API

Fetch daily price series for a list of CoinGecko coins (keyless) and compute the full Pearson correlation matrix of their daily returns, plus the most- and least-correlated pairs. The value-add is the correlation computation an agent can't get from raw prices — it tells you how a basket actually co-moves. Answers 'how correlated are BTC and ETH', 'correlation matrix for my coins', 'are these tokens diversified', 'do these move together'.

Price$0.01per request
MethodPOST
Route/v1/finance/crypto-correlation
StatusLive
MIME typeapplication/json
Rate limit60/minute
Cache3600s public
financecryptocorrelationpearsonmatrixreturnsdiversificationportfolio
API URLhttps://x402.hexl.dev/v1/finance/crypto-correlation
Integration docs
Example request
{
  "ids": [
    "bitcoin",
    "ethereum",
    "solana"
  ],
  "days": 30
}
Example response
{
  "days": 30,
  "coins": [
    "bitcoin",
    "ethereum",
    "solana"
  ],
  "observations": 30,
  "matrix": [
    [
      1,
      0.842,
      0.731
    ],
    [
      0.842,
      1,
      0.799
    ],
    [
      0.731,
      0.799,
      1
    ]
  ],
  "mostCorrelated": {
    "a": "ethereum",
    "b": "solana",
    "correlation": 0.799
  },
  "leastCorrelated": {
    "a": "bitcoin",
    "b": "solana",
    "correlation": 0.731
  }
}
Input schema
{
  "type": "object",
  "required": [
    "ids"
  ],
  "properties": {
    "ids": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "examples": [
        [
          "bitcoin",
          "ethereum",
          "solana"
        ]
      ]
    },
    "days": {
      "type": "number",
      "default": 30,
      "examples": [
        30
      ]
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}