RiskModels Macro Factor Correlation
riskmodels_get_macro_correlationMeasure how a stock's returns co-move with macro factors like rates, credit, oil, the dollar, or volatility using Pearson or Spearman correlations over a trailing window.
Instructions
Use when you want to know how one stock's returns co-move with macro factors such as rates, credit, oil, the dollar or volatility. Not for the macro factor return series themselves (use riskmodels_get_factor_returns). Returns, from POST /correlation, Pearson or Spearman correlations over a trailing window, using the L3 residual return by default. End-of-day data, refreshed after each US market close. Price: $0.01 per call.
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": {
"ticker": "<ticker>"
},
"name": "riskmodels_get_macro_correlation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | No | "pearson" or "spearman", e.g. "spearman" (default "pearson") | |
| ticker | Yes | US stock ticker symbol, case-insensitive, e.g. NVDA | |
| factors | No | Macro factor keys, e.g. ["oil","usd","term_spread"] (default: the standard set) | |
| return_type | No | Return series to correlate, e.g. "gross" (default "l3_residual") | |
| window_days | No | Trailing window in trading days, integer, e.g. 126 (default 252) |