Skip to main content
POST
/
v1
/
correlation
Cross-market correlation analysis
curl --request POST \
  --url https://api.rekko.ai/v1/correlation \
  --header 'Content-Type: application/json' \
  --data '
{
  "market_ids": [
    "KXFED-26MAR19",
    "KXCPI-26MAR",
    "KXUNEMP-4.5"
  ],
  "period": "7d",
  "platform": "kalshi"
}
'
import requests

url = "https://api.rekko.ai/v1/correlation"

payload = {
"market_ids": ["KXFED-26MAR19", "KXCPI-26MAR", "KXUNEMP-4.5"],
"period": "7d",
"platform": "kalshi"
}
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
market_ids: ['KXFED-26MAR19', 'KXCPI-26MAR', 'KXUNEMP-4.5'],
period: '7d',
platform: 'kalshi'
})
};

fetch('https://api.rekko.ai/v1/correlation', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.rekko.ai/v1/correlation",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'market_ids' => [
'KXFED-26MAR19',
'KXCPI-26MAR',
'KXUNEMP-4.5'
],
'period' => '7d',
'platform' => 'kalshi'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://api.rekko.ai/v1/correlation"

payload := strings.NewReader("{\n \"market_ids\": [\n \"KXFED-26MAR19\",\n \"KXCPI-26MAR\",\n \"KXUNEMP-4.5\"\n ],\n \"period\": \"7d\",\n \"platform\": \"kalshi\"\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://api.rekko.ai/v1/correlation")
.header("Content-Type", "application/json")
.body("{\n \"market_ids\": [\n \"KXFED-26MAR19\",\n \"KXCPI-26MAR\",\n \"KXUNEMP-4.5\"\n ],\n \"period\": \"7d\",\n \"platform\": \"kalshi\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.rekko.ai/v1/correlation")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"market_ids\": [\n \"KXFED-26MAR19\",\n \"KXCPI-26MAR\",\n \"KXUNEMP-4.5\"\n ],\n \"period\": \"7d\",\n \"platform\": \"kalshi\"\n}"

response = http.request(request)
puts response.read_body
{
  "clusters": [
    [
      "KXFED-26MAR19",
      "KXCPI-26MAR"
    ]
  ],
  "concentration_warnings": [
    "KXFED-26MAR19 and KXCPI-26MAR are highly correlated (0.73) — holding both creates concentration risk on Fed policy"
  ],
  "generated_at": "2026-03-21T14:30:00Z",
  "market_ids": [
    "KXFED-26MAR19",
    "KXCPI-26MAR",
    "KXUNEMP-4.5"
  ],
  "pairs": [
    {
      "correlation": 0.73,
      "data_points": 168,
      "market_a": "KXFED-26MAR19",
      "market_b": "KXCPI-26MAR",
      "relationship": "strong_positive"
    },
    {
      "correlation": 0.45,
      "data_points": 168,
      "market_a": "KXFED-26MAR19",
      "market_b": "KXUNEMP-4.5",
      "relationship": "positive"
    },
    {
      "correlation": -0.12,
      "data_points": 168,
      "market_a": "KXCPI-26MAR",
      "market_b": "KXUNEMP-4.5",
      "relationship": "neutral"
    }
  ],
  "period": "7d",
  "platform": "kalshi"
}
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}

Body

application/json

Request for cross-market correlation analysis.

market_ids
string[]
required

Market IDs to correlate

Required array length: 2 - 20 elements
platform
string
default:kalshi

Platform for all markets

period
string
default:7d

Lookback period: '48h', '7d', '30d'

Response

Successful Response

Cross-market correlation analysis.

market_ids
string[]
required

Markets analyzed

platform
string
required

Platform

period
string
required

Lookback period used

pairs
MarketCorrelationPair · object[]

All pairwise correlation coefficients

clusters
string[][]

Groups of correlated markets (correlation > 0.5)

concentration_warnings
string[]

Warnings about highly correlated pairs

generated_at
string<date-time>

When this analysis was generated