Time-weighted and money-weighted returns
portfolio-analytics_performance-twr-mwrCompute linked TWR, Modified Dietz and XIRR from valuations and external cash flows, with optional annualisation. Price $0.04 USDC. POST /api/v1/portfolio-analytics/performance-twr-mwr. 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": {
"valuations": "<valuations>"
},
"name": "portfolio-analytics_performance-twr-mwr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flows | No | flows, array. Required. | |
| annualize | No | annualize, boolean. Required. | |
| valuations | Yes | valuations, array. Required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| twr | No | twr. Number. | |
| days | No | days. Number. | |
| xirr | No | xirr. Number. | |
| status | No | status. String. | |
| sources | No | sources. Array. | |
| subPeriods | No | subPeriods. Array. | |
| limitations | No | limitations. Array. | |
| modifiedDietz | No | modifiedDietz. Number. |