{
  "x402Version": 2,
  "id": 35178,
  "slug": "35178",
  "resource": "https://api.marketintelligenceapi.com/api/v1/analytics/correlation",
  "description": "Use to check whether two series move together ($0.01), e.g. returns of two assets or a signal versus outcomes: send equal-length x and y; get Pearson r (default) or Spearman rank correlation, r-squared and direction. Deterministic decimal math on your numbers, nothing fetched.",
  "type": "http",
  "serviceName": "Market Intelligence API",
  "resourceType": "Market Data",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x48d5A78d480B4C32dE319C2aEF69e682Dc304615",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 60
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0x48d5A78d480B4C32dE319C2aEF69e682Dc304615",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 60
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0x48d5A78d480B4C32dE319C2aEF69e682Dc304615",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 60
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "9CAhY1vdaZfrfoto3KLQtRAo1dVWxNn5xAfmc2XbZVsf",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 60
    },
    {
      "scheme": "exact",
      "network": "eip155:480",
      "payTo": "0x48d5A78d480B4C32dE319C2aEF69e682Dc304615",
      "asset": "0x79A02482A880bCE3F13e09Da970dC34db4CD24d1",
      "amount": "10000",
      "maxTimeoutSeconds": 60
    },
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x48d5A78d480B4C32dE319C2aEF69e682Dc304615",
      "asset": "0x60a3E35Cc302bFA44Cb288Bc5a4F316Fdb1adb42",
      "amount": "9000",
      "maxTimeoutSeconds": 60
    },
    {
      "scheme": "exact",
      "network": "eip155:480",
      "payTo": "0x48d5A78d480B4C32dE319C2aEF69e682Dc304615",
      "asset": "0x1C60ba0A0eD1019e8Eb035E6daF4155A5cE2380B",
      "amount": "9000",
      "maxTimeoutSeconds": 60
    },
    {
      "scheme": "exact",
      "network": "eip155:84532",
      "payTo": "0x48d5A78d480B4C32dE319C2aEF69e682Dc304615",
      "asset": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
      "amount": "10000",
      "maxTimeoutSeconds": 60
    }
  ],
  "outputSchema": {
    "additionalProperties": true,
    "properties": {
      "example": {
        "description": "Example JSON response returned by this endpoint"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "method": "PEARSON",
            "x": [
              1,
              2,
              3,
              4,
              5
            ],
            "y": [
              2,
              4,
              5,
              8,
              10
            ]
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "correlation": 0.990148,
            "direction": "POSITIVE",
            "method": "PEARSON",
            "observations": 5,
            "operation": "correlation",
            "rSquared": 0.980392,
            "result": 0.990148
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "method": {
                    "default": "PEARSON",
                    "enum": [
                      "PEARSON",
                      "SPEARMAN"
                    ],
                    "type": "string"
                  },
                  "x": {
                    "items": {
                      "description": "First series",
                      "type": "number"
                    },
                    "maxItems": 10000,
                    "minItems": 3,
                    "type": "array"
                  },
                  "y": {
                    "items": {
                      "description": "Second series, same length as x",
                      "type": "number"
                    },
                    "maxItems": 10000,
                    "minItems": 3,
                    "type": "array"
                  }
                },
                "required": [
                  "x",
                  "y"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "additionalProperties": true,
            "properties": {
              "example": {
                "description": "Example JSON response returned by this endpoint"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input",
          "output"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "statistics",
    "correlation",
    "pearson",
    "spearman",
    "bazaar"
  ],
  "sourceHost": "api.marketintelligenceapi.com",
  "lastUpdated": "2026-10-08T06:08:42.098Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-08T06:08:41.892Z"
  },
  "metadata": {
    "serviceName": "Market Intelligence API",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "method": "PEARSON",
              "x": [
                1,
                2,
                3,
                4,
                5
              ],
              "y": [
                2,
                4,
                5,
                8,
                10
              ]
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "correlation": 0.990148,
              "direction": "POSITIVE",
              "method": "PEARSON",
              "observations": 5,
              "operation": "correlation",
              "rSquared": 0.980392,
              "result": 0.990148
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "additionalProperties": false,
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "properties": {
                    "method": {
                      "default": "PEARSON",
                      "enum": [
                        "PEARSON",
                        "SPEARMAN"
                      ],
                      "type": "string"
                    },
                    "x": {
                      "items": {
                        "description": "First series",
                        "type": "number"
                      },
                      "maxItems": 10000,
                      "minItems": 3,
                      "type": "array"
                    },
                    "y": {
                      "items": {
                        "description": "Second series, same length as x",
                        "type": "number"
                      },
                      "maxItems": 10000,
                      "minItems": 3,
                      "type": "array"
                    }
                  },
                  "required": [
                    "x",
                    "y"
                  ],
                  "type": "object"
                },
                "bodyType": {
                  "enum": [
                    "json"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "additionalProperties": true,
              "properties": {
                "example": {
                  "description": "Example JSON response returned by this endpoint"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input",
            "output"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.marketintelligenceapi.com",
    "manifest_name": "api.marketintelligenceapi.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": null,
    "type": "string"
  }
}