casparser
casparser copied to clipboard
How to calculate XIRR from this CAS parsed data
How to calculate XIRR from this CAS parsed data
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.
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
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
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