correlation_matrix
Assess diversification and risk by computing pairwise correlation matrix from historical returns for up to 20 symbols.
Instructions
Compute pairwise correlation matrix for a set of symbols based on historical returns.
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": "correlation_matrix"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| barSize | No | Bar size for returns (default: "1 day") | |
| symbols | Yes | List of symbols (max 20) | |
| lookbackDays | No | Historical lookback in days (default: 252) |