npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

mfundinfo

v2.0.1

Published

Extracting mutual fund information

Downloads

10

Readme

MFundInfo

MfundInfo is a package that lets you retrieve mutual fund related data.

Usage

  1. To install the package, use the following command:
npm i mfundinfo
  1. To use the package in your javascript file, use the following import statement:
import mfund from mfundinfo

Functionalities

  • getSchemeCode(schemeName) function returns the scheme code for a given scheme name.
  • getAllFundFamilies() function returns the list of all active fund families
  • getCategoryBySchemeType(type) function returns the category based on the scheme type. Pass 1 as the argument if you wish to specify Open ended schemes, 2 as an argument if your choice is Close Ended Scheme, 3 if you want to go with Interval Fund Schemes. If no argument is passed, by default, it will consider All scheme types.
  • getSchemeByFamily(family) function returns the list of active schemes in the specified fund family.
  • fetchNAVbyCode(date,code) function returns the net asset value of the specified scheme on the specified date.
  • latestNav(code) function returns the latest net asset value for the specified scheme.
  • fundCalculator(itype,pr,rate,years) takes in the type of investement which can be specified as LS for lumpsum investement or SIP in case of Systematic Investement Plan. Along with the type, the amount invested, rate of returns expected and furation have to be specified. The output is an approximation of the expected future value and totally depends on the market values.
  • goalSIPCalculator(goal,rate,years) helps provide an approximate monthly investement amount to attain a goal amount with an expected rate of returns and the duration for which user is willing to invest. The output is an approximation and may vary depending on the market value.

Credits : Rapid Api has been used for fetching mutual fund related data.

Example

import mFund from mfundinfo;


let nav = new mFund()

nav.getSchemeCode("ICICI Prudential Floating Interest Fund Plan C - Dividend Daily").then(obj=>{
    console.log(obj)
})

nav.getAllFundFamilies().then(obj=>{
    console.log(obj)
})

nav.getCategoryBySchemeType(1).then(obj=>{
    console.log(obj)
})

nav.fetchNAVbyCode("01-Jan-2015","108272").then(obj=>{
    console.log(obj)
})

nav.latestNav("108272").then(obj=>{
    console.log(obj)
})

console.log(nav.fundCalculator("SIP",6679,15,20))

console.log(nav.goalSIPCalculator(10000000,15,20))