Skip to content
Wrapper functions for the Central Bank of Malaysia’s API
R
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/ISSUE_TEMPLATE
R
docs
man
tests
vignettes
.Rbuildignore
.gitignore
.travis.yml
CODE_OF_CONDUCT.md
DESCRIPTION
NAMESPACE
README.Rmd
README.md
_pkgdown.yml
bnmr.Rproj
codecov.yml

README.md

bnmr

Travis build status Codecov test coverage

The goal of bnmr is to provide a set of convenient wrapper functions for the Central Bank of Malaysia’s API.

Installation

To install bnmr, run the following code (requires devtools):

# install.packages("devtools")
devtools::install_github("philip-khor/bnmr")

Example

This is a basic example which shows you how to solve a common problem:

library(bnmr)
current_base_rates <- base_rate()
head(current_base_rates)
#>   bank_code                                                 bank_name
#> 1  BKKBMYKL                                       Bangkok Bank Berhad
#> 2  CIBBMYKL                                          CIMB Bank Berhad
#> 3  CITIMYKL                                           Citibank Berhad
#> 4  HLBBMYKL                           Hong Leong Bank Malaysia Berhad
#> 5  HBMBMYKL                                 HSBC Bank Malaysia Berhad
#> 6  ICBKMYKL Industrial and Commercial Bank of China (Malaysia) Berhad
#>   base_rate base_lending_rate indicative_eff_lending_rate
#> 1      4.72              7.37                        5.92
#> 2      4.25              7.10                        5.00
#> 3      3.90              7.05                        4.70
#> 4      4.13              7.14                        5.00
#> 5      3.89              6.99                        5.00
#> 6      4.02              6.95                        4.75
#>   base_financing_rate
#> 1                  NA
#> 2                  NA
#> 3                  NA
#> 4                  NA
#> 5                  NA
#> 6                  NA

See also

PyPI version

knazran/python-openbnmapi for a Python wrapper of the Open BNM API.

You can’t perform that action at this time.