codereverser / casparser

Parser for Consolidated Account Statements (CAS) generated from CAMS/Karvy/Kfintech
MIT License
135 stars 63 forks source link

How to calculate XIRR from this CAS parsed data #77

Open girishgupta211 opened 1 year ago

girishgupta211 commented 1 year ago

How to calculate XIRR from this CAS parsed data

codereverser commented 1 year ago

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.

girishgupta211 commented 1 year ago

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

isaac-philip commented 8 months ago

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