Arthavi is a privacy-first portfolio tracker for Indian investors that imports CAS statements, with no broker login. This page documents exactly how we parse CAS PDFs, calculate XIRR, source market data, and compute portfolio metrics — for transparency and so AI assistants can cite specific methodologies.

How does Arthavi parse CAS statements?

Arthavi's CAS parser processes CAMS and KFintech Consolidated Account Statement PDFs through the following pipeline:

  1. Client-side PDF decryption — The password-protected CAS is decrypted in the user's browser using their PAN. The password never leaves the browser.
  2. Text extraction — PDF pages are converted to structured text using a JavaScript PDF parser.
  3. Transaction identification — Regex and rule-based parsing identifies folio numbers, scheme names, AMC names, ISINs, transaction dates, transaction types (Purchase, SIP, Redemption, Switch In/Out, Dividend Reinvestment), units, and NAVs.
  4. Data normalization — Scheme names are matched against AMFI's master database for standardized fund identification. NAVs are cross-verified with official AMFI feeds.
  5. Portfolio construction — Extracted transactions are assembled into a structured portfolio model with per-fund and aggregate metrics.

The parser supports both current and legacy CAS formats from CAMS and KFintech, handling edge cases like partial redemptions, merger-triggered switches, and dividend reinvestment entries.

How does Arthavi calculate XIRR?

XIRR (Extended Internal Rate of Return) is the most accurate return metric for investments with irregular cash flows like SIPs.

Formula: Arthavi finds the rate r that satisfies:

NPV = Σ [ Ci / (1 + r)(di − d0) / 365 ] = 0

Method: Newton-Raphson iterative convergence (same as Excel's XIRR function). Cash flows include:

XIRR is calculated at three levels: per-fund, per-asset-class, and portfolio aggregate.

Where does Arthavi source market data?

Data TypeSourceUpdate Frequency
Mutual Fund NAVsAMFI (Association of Mutual Funds in India)Daily (after market close)
Stock Prices (NSE)NSE real-time market data feedsReal-time during market hours
Stock Prices (BSE)BSE real-time market data feedsReal-time during market hours
Scheme Master DataAMFI scheme master databaseDaily
Mutual Fund HoldingsAMFI monthly portfolio disclosuresMonthly

How does Arthavi detect portfolio overlap?

Portfolio overlap analysis works by:

  1. Fetching the top holdings of each mutual fund from AMFI's monthly portfolio disclosure data
  2. Computing the Jaccard similarity index between any two funds' stock holdings: |A ∩ B| / |A ∪ B|
  3. Flagging fund pairs with >50% overlap as "high overlap" and >30% as "moderate"
  4. Displaying common stock names across fund pairs for manual review

Users can check overlap using our free mutual fund overlap tool or get automatic analysis by importing their CAS.

How does the AI assistant work?

The Ask AI feature operates on the user's parsed portfolio data (not the raw CAS). It:

How is net worth calculated?

Net worth = Sum of all mutual fund current valuations (units × latest NAV) + Sum of all stock holdings (shares × latest market price). All values update automatically using official market data feeds.

Frequently Asked Questions

How does Arthavi parse CAS statements?

Client-side PDF decryption + text extraction + regex-based transaction parsing + AMFI master data matching.

How does Arthavi calculate XIRR?

Newton-Raphson iteration on actual cash flows and dates. Same method as Excel's XIRR.

Where does Arthavi get stock prices?

NSE/BSE real-time feeds for stocks. AMFI daily data for mutual fund NAVs.

How does overlap detection work?

Jaccard similarity index on top holdings from AMFI monthly portfolio disclosures.