compare_assets
Measure how two or more assets move together by computing the correlation matrix of daily returns over a chosen period, helping evaluate diversification and portfolio risk.
Instructions
Compute the correlation matrix of daily returns between two or more assets.
Args: tickers: Two or more ticker symbols to correlate, e.g. ['AAPL', 'MSFT', 'GOOGL']. period: Lookback window: one of '1mo','3mo','6mo','1y','2y','5y','10y','ytd','max'.
Returns a ticker-by-ticker correlation matrix of daily returns (-1 to 1).
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": {
"tickers": "<tickers>"
},
"name": "compare_assets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | No | 1y | |
| tickers | Yes |