Correlation and Ledoit-Wolf covariance
portfolio-analytics_correlation-matrixPearson and Spearman correlation, optional covariance, rolling windows and Ledoit-Wolf shrinkage covariance from caller series. Price $0.03 USDC. POST /api/v1/portfolio-analytics/correlation-matrix. An unpaid call returns the x402 payment terms and does not run.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"series": "<series>"
},
"name": "portfolio-analytics_correlation-matrix"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| series | Yes | series, object. Required. | |
| methods | No | methods, array. Required. | |
| missing | No | missing, string, one of pairwise, listwise. Required. | pairwise |
| rollingWindow | No | rollingWindow, value. Optional. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| psd | No | psd. Boolean. | |
| pearson | No | pearson. Array. | |
| sources | No | sources. Array. | |
| spearman | No | spearman. Array. | |
| ledoitWolf | No | ledoitWolf. Object. | |
| pairCounts | No | pairCounts. Array. | |
| limitations | No | limitations. Array. |