Compute XIRR from a CAS
compute_cas_xirrCompute XIRR from a consolidated account statement PDF, treating purchases and levies as outflows, redemptions and dividends as inflows, with the current portfolio value closing the series.
Instructions
Compute annualised return (XIRR) from the real, dated cash flows in a consolidated account statement. compute_xirr can already do the arithmetic, but nobody can hand-type years of SIP instalments — the statement has every one of them. Purchases and levies count as outflows, redemptions and dividend payouts as inflows, and the portfolio's current value closes the series.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | portfolio treats switches between schemes as internal; scheme counts them. | portfolio |
| valueAt | No | Close the series at today's AMFI NAV, or at the statement's own valuation. | today |
| filePath | Yes | Path to the CAS PDF on this machine | |
| password | No |