compute_correlation_matrix
Calculate cross-asset correlations from daily returns to identify regime shifts and concentration risk, with threshold alerts for high pairwise correlation.
Instructions
Compute real-time cross-asset correlation matrix for a list of symbols using actual daily returns. Detects regime changes (correlation spikes during crises). Returns heatmap data, average pairwise correlation, and risk concentration score.
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": {
"symbols": "<symbols>"
},
"name": "compute_correlation_matrix"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | No | 3m | |
| symbols | Yes | 2-20 symbols | |
| threshold | No | Alert if any pair correlation exceeds this |