Net Asset Value (NAV) is one of the most fundamental data points when it comes to the Mutual Funds industry. Today we will learn about NAV and how to fetch NAV details in python using mftools API. **Net Asset Value(NAV) **is the market value of all a...

Markdown supported · ⌘↵ to post
Hi, Good contribution. Btw i would like to know if holdings list of each scheme is available ? Thanks in advance
Hi Shreyans Jain,
Great work on the code. But getting an error while calling the function when executing the dataframe.
Traceback (most recent call last):
File "C:/Users/am/Desktop/Python/Working/amfi.py", line 31, in <module>
values_df = HistoricalNav(scheme_code_list = scheme_code_list[0:5], start_date= '01-05-2021', end_date= '01-05-2021')
File "C:/Users/am/Desktop/Python/Working/amfi.py", line 22, in HistoricalNav
df = df.sort_values(by = 'date') # sorting the values of every Scheme code based on Date
File "C:\Users\am\AppData\Local\Programs\Python\Python39\lib\site-packages\pandas\core\frame.py", line 5455, in sort_values
k = self._get_label_or_level_values(by, axis=axis)
File "C:\Users\am\AppData\Local\Programs\Python\Python39\lib\site-packages\pandas\core\generic.py", line 1684, in _get_label_or_level_values
raise KeyError(key)
KeyError: 'date'
Regards, Fuubutsushi
Amazing article Shreyans Jain, good to have you as a contributor on Trade With Python.
sourav palui
Hi, I tried to run this code today. Due to deprecation warning, it is not able to fetch historical NAV for all schemes. If you could please help. Appreciate it.