Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to track Indian Mutual Funds using Google Sheets and update the price automatically

Looking to manage the mutual fund portfolio, and automatically update the price so the portfolio always shows the correct information.

I have tried to use Google sheet functions like

INDEX
SPLIT
VLOOKUP
IMPORTDATA

=IMPORTDATA("https://www.amfiindia.com/spages/NAVAll.txt")
=INDEX(SPLIT(VLOOKUP(A2&"*",NAV!$A$1:$A$20501,1,false),";"),,5)

The outcome of this is to create a portfolio with an automated price update.

like image 868
Suresh PB Avatar asked Mar 24 '19 08:03

Suresh PB


1 Answers

You can easily use GOOGLEFINANCE APIs to do this. Suppose you want to track price of SBI Magnum Taxgain Scheme Direct Growth.

You can do this in the following steps:

  1. Go to Google Finance.
  2. Get the Google Finance Ticker symbol or Stock Id for the fund. For example: MUTF_IN:SBI_MAGN_TAX_VQNUL5 for SBI Magnum Taxgain Scheme Direct Growth.
  3. In a new Google Sheet use the following method to get current price of the MF.

    =GOOGLEFINANCE("MUTF_IN:SBI_MAGN_TAX_VQNUL5")
    

For example see:

  1. Medium Article
  2. video tutorial
  3. sheet
like image 106
Rishabh Agarwal Avatar answered Oct 13 '22 12:10

Rishabh Agarwal