0.0.6 • Published 6 years ago

amfinav v0.0.6

Weekly downloads
21
License
SEE LICENSE IN LI...
Repository
github
Last release
6 years ago

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

Usage

using with an event listener with refresh every 3600 seconds

using with a callback with refresh every 3600 seconds

using with a callback and no refresh

using with a event listener and no refresh

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
  • fundManager : String, name of the fund manager
  • fundType : String, fund type
  • fund : Object