Skip to content
/ amfi Public

Utility package to get latest NAV data from AMFI

License

Notifications You must be signed in to change notification settings

satzrp/amfi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AMFI - Utility package to get latest NAV data from AMFI

Documentation Go Report Card Build

A small utility package to fetch latest NAV(Net Asset Value) of Indian mutual funds published by AMFI.

Disclaimer: The package depends completely on the data published by AMFI.

Adding to your project

go get github.com/LordOfSati/amfi

Usage

import "github.com/LordOfSati/amfi"

func main() {
  amfi := &amfi.AMFI{}
  err := amfi.Load()
  if err != nil {
    funds := amfi.GetFunds()
    fundHouses := amfi.GetFundHouses()
    fundCategories := amfi.GetFundCategories()
    // to get details of single fund
    fund, err := amfi.GetFund("103155")
  }
}

Sample Fund Details in JSON format

{
  "code": "120518",
  "name": "Aditya Birla Sun Life Balanced '95 Fund - Direct Plan-Dividend",
  "isin": "INF209KA1LH3",
  "isinReinvestment": "INF209K01ZB2",
  "type": "Open Ended Schemes(Balanced)",
  "house": "Aditya Birla Sun Life Mutual Fund",
  "nav": 207.77,
  "repurchaseValue": 205.69,
  "salePrice": 207.77,
  "date": "18-May-2018"
}

About

Utility package to get latest NAV data from AMFI

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages