Project

navfund

0.0
No commit activity in last 3 years
No release in over 3 years
Data scraper for Investment Fund Net Asset Values (NAVs)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 0.8

Runtime

~> 1.4
 Project Readme

Navfund

Navfund is a ruby gem that fetches the values of the current NAVPU/NAVPS of several UITFs/Mutual Funds. Currently it only supports Philippine providers.

Gem Version Build Status

Installation

Add this line to your application's Gemfile:

gem 'navfund'

And then execute:

bundle

Or install it yourself as:

gem install navfund

Usage

Get a list of supported Providers:

Navfund::Providers

Initialize a Provider's data:

@metrobank = Navfund::Metrobank.new

To get a list of supported funds for a specific Provider:

Navfund::Metrobank::Funds
@metrobank.funds  # if a provider is initialized

Get the current NAVPU/NAVPS of a fund, by name:

@metrobank.value("Equity Fund")

A Navfund::Provider::InvalidFund will be raised if the specified fund is not supported or is invalid.

Get the date in which the value is valid. This returns a Date object:

@metrobank.value_at

To list all fund names with their current values:

@metrobank.fund_values

This returns an array of hashes with all the fund names and their current values.

Testing

Install the minitest gem if its not already installed in your system

gem install minitest

Then run the tests (default rake task is the 'test' task):

rake test

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request