Skip to content

NAV database and analysis for Indian mutual funds

Notifications You must be signed in to change notification settings

kumanna/mfnavigator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mutual Fund NAVigator

This project is designed to create a database and provide analytics for Indian mutual fund data.

Installation

  1. Install Python and create a virtualenv. Use the virtualenv.

  2. Install the requisite dependencies:

pip3 install -r requirements.txt
  1. Install the appropriate PostgreSQL package for your distribution. On Debian and Ubuntu, you can do
sudo apt-get install postgresql postgresql-client

The database

To initialize the PostgreSQL data:

  1. Create the project database mfnavigator. On Debian or Ubuntu, you can do this by:
createdb -O <username> mfnavigator
  1. Then run
python3 manage.py makemigrations
python3 manage.py migrate

  1. Now, you need to create the AMCs. Currently, this has been done manually and will be automated soon.

  2. To import NAVs to the database, you can run this:

python3 manage.py importnavs --amcid <amcid> --amfinumber <mfnumber> --mfname <mfname> --navfile <amfi_nav_file>

For example, for Birla Sun Life Frontline Equity - Growth, we can run

python3 manage.py importnavs --amcid 3 --amfinumber 103174 --mfname "Birla Sun Life Frontline Equity Fund-Growth" --navfile BSLNAVs.txt

where BSLNAVs.txt is downloaded from the AMFI website.

About

NAV database and analysis for Indian mutual funds

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published