Git Product home page Git Product logo

portfolio_tracker's Introduction

Mutual fund portfolio Tracker

A simple DIY mutual fund tracker written in python

How to use

  1. Download the package
  2. Execute pip install -r requirements.txt
  3. Execute python3 myPortfolioScript.py transactions.csv

Once you execute the above under the mfl_tmp directory you will see a folder sch you will see induvidual schemes progress on a daily basis, open the csv in an excel file and plot for more details. Also after the run you will see these files EmergencyPortFolioProgress.csv - transactions which are tagged under goal emergency

RetirementEquityPortFolioProgress.csv - transactions which are tagged under goal retirement

ChildEducationEquityPortFolioProgress.csv - transactions which are tagged under goal child education

OverallEquityPortFolioProgress.csv - transactions which are tagged equity

OverallDebtPortFolioProgress.csv - transactions which are tagged debt

OverallEntirePortFolioProgress.csv - transactions which are tagged equity and debt, this is the entire portfolio

Currently only goals 'Emergency' , 'Retirement' , 'ChildEducation' are supported

How should the transactions.csv file look like

Date Scheme Code Scheme Name Type Price Units Amount Equity/Debt Goal

Example:

Date Scheme Code Scheme Name Type Price Units Amount Equity/Debt Goal
08-Jun-12 101762 HDFC Equity Fund - Growth Option Buy 248.692 4.021 1000 Equity Retirement
08-Jun-12 101922 Canara Robeco Equity Diversified Fund - Regular Plan - Growth Buy 53.73 18.612 1000 Equity ChildEducation
11-Jun-12 101762 HDFC Equity Fund - Growth Option Buy 247.975 8.065 2000 Equity Retirement
11-Jun-12 101922 Canara Robeco Equity Diversified Fund - Regular Plan - Growth Buy 53.69 37.251 2000 Equity ChildEducation
12-Jun-12 108466 ICICI Prudential Bluechip Fund - Growth Buy 15.75 126.984 2000 Equity Retirement
12-Jun-12 102000 HDFC Top 100 Fund - Growth Option Buy 193.745 10.323 2000 Equity Retirement

Please make sure that the column header has same names as shown above.

Scheme codes can be got from http://portal.amfiindia.com/spages/NAVopen.txt

Please mail me at srbharadwaj at gmail dot com for any issues.

portfolio_tracker's People

Contributors

srbharadwaj avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.