Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/satzrp/amfi
Utility package to get latest NAV data from AMFI
https://github.com/satzrp/amfi
golang golang-package
Last synced: 16 days ago
JSON representation
Utility package to get latest NAV data from AMFI
- Host: GitHub
- URL: https://github.com/satzrp/amfi
- Owner: satzrp
- License: mit
- Created: 2018-05-19T17:58:04.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-05-20T11:11:20.000Z (over 6 years ago)
- Last Synced: 2024-10-30T22:38:49.229Z (18 days ago)
- Topics: golang, golang-package
- Language: Go
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AMFI - Utility package to get latest NAV data from AMFI
[![Documentation](https://godoc.org/github.com/LordOfSati/amfi?status.svg)](http://godoc.org/github.com/LordOfSati/amfi)
[![Go Report Card](https://goreportcard.com/badge/github.com/LordOfSati/amfi)](https://goreportcard.com/report/github.com/LordOfSati/amfi)
[![Build](https://travis-ci.com/LordOfSati/amfi.svg?branch=master)](https://travis-ci.com/LordOfSati/amfi.svg?branch=master)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
```sh
go get github.com/LordOfSati/amfi
```### Usage
```go
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
```json
{
"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"
}
```