casparser icon indicating copy to clipboard operation
casparser copied to clipboard

How to calculate XIRR from this CAS parsed data

Open girishgupta211 opened this issue 2 years ago • 3 comments

How to calculate XIRR from this CAS parsed data

girishgupta211 avatar Aug 08 '23 15:08 girishgupta211

here's an example from another project that uses cas data.

https://github.com/codereverser/folioman/blob/main/api/mutualfunds/utils.py#L160

you need to pass transactions list along with current date and value (both available from cas parsed data). You may pass just transactions from a single scheme for a fund wise xirr, or merge transactions array from all schemes to get a portfolio wise xirr.

codereverser avatar Aug 09 '23 05:08 codereverser

Thanks Sandeep for response.

Hi how can I get daily NAV for all schemes? Is there any way to sync users data once he uploads the CAS file for new transactions ? Also is there any API to get scheme details for given ISIN number

Regards Girish

girishgupta211 avatar Aug 09 '23 06:08 girishgupta211

Hello @girishgupta211 ,

for your query to get daily NAV for all mutual fund schemes,

Check out https://www.mfapi.in/

eg. ICICI Prudential Nifty Next 50 Index Fund - Direct Plan - IDCW at https://api.mfapi.in/mf/120683

isaac-philip avatar Jan 27 '24 05:01 isaac-philip

If you don't have the scheme number (which mfapi.in requires) but have the ISIN, then you can use https://mf.captnemo.in/nav/:isin.

E.g., ICICI Prudential Nifty Next 50 Index Fund - Direct Plan - IDCW at https://mf.captnemo.in/nav/INF109K01Y72

the-solipsist avatar Apr 19 '25 19:04 the-solipsist