Socket
Socket
Sign inDemoInstall

amfinav

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    amfinav

AMFI NAV Data for Mutual Funds in India.


Version published
Weekly downloads
6
Maintainers
1
Install size
7.94 kB
Created
Weekly downloads
 

Readme

Source

node-amfinav

Fetches NAVs of Indian mutual funds published by AMFI and reformats data into JSON

DISCLAIMER/WARNING : Developer has nothing to do with AMFI . If AMFI changes the way data is published or stops publishing the data, this code will not work as expected.

Data can be read as a JSON Array

Install

npm install amfinav

Usage

amfi = require('amfi');
amfiNavs = new amfi(options);

using with an event listener with refresh every 3600 seconds

var amfiNavs = new amfi({refreshInterval : 3600});
amfiNavs.on('dataready', callback);

using with a callback with refresh every 3600 seconds

var amfiNavs = new amfi({callback: callback, refreshInterval : 3600});

using with a callback and no refresh

var amfiNavs = new amfi({callback: callback});

using with a event listener and no refresh

var amfiNavs = new amfi();
amfiNavs.on('dataready', listener);
Options
  • callback : function which handles NAV Data
  • refreshInterval : Interval in seconds. Data is refreshed at this interval.
Events
  • dataready : Emitted after data is fetched and processed into JSON.
Objects & properties
  • amfi.status : String, 'Acquiring Data' or 'Data Ready'
  • amfi.updateDate : Date, When last time data was updated
  • amfi.data : Object, NAV Data
	{funds:[fund1, fund2...], fundManagers: [fundManager1, fundManager2..], 
	fundTypes: [fundType1, fundType2...], updateDate : Date}
  • fundManager : String, name of the fund manager
  • fundType : String, fund type
  • fund : Object
{ 'Scheme Code': 'NNNNNNNN',
  'ISIN Div Payout/ ISIN Growth': 'Code1',
  'ISIN Div Reinvestment': 'Code2',
  'Scheme Name': 'Scheme XXXXXX',
  'Net Asset Value': '10.6113',
  'Repurchase Price': '10.5052',
  'Sale Price': '10.6113',
  'Date': '28-Mar-2013',
  'Type': 'Type1',
  'Manager': 'Manager1' }

Keywords

FAQs

Last updated on 01 Aug 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc