Factor regression of excess returns
portfolio-analytics_factor-regressionOLS of portfolio excess returns on caller-supplied factors with intercept, betas, alpha and optional Newey-West standard errors. Price $0.04 USDC. POST /api/v1/portfolio-analytics/factor-regression. 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": {
"returns": "<returns>",
"factors": "<factors>"
},
"name": "portfolio-analytics_factor-regression"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| factors | Yes | factors, object. Required. | |
| returns | Yes | returns, array. Required. | |
| riskFree | No | riskFree, value. Required. | |
| neweyWestLags | No | neweyWestLags, integer, from 0 to 100. Required. | |
| periodsPerYear | No | periodsPerYear, number. Required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | n. Number. | |
| betas | No | betas. Array. | |
| alphaSe | No | alphaSe. Number. | |
| sources | No | sources. Array. | |
| rSquared | No | rSquared. Number. | |
| limitations | No | limitations. Array. | |
| alphaPerPeriod | No | alphaPerPeriod. Number. | |
| alphaAnnualized | No | alphaAnnualized. Number. |