Skip to contents

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 remotes):

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

Example

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

library(bnmr)
get_kl_usd_reference_rate()
#> # A tibble: 1 × 2
#>   date        rate
#>   <date>     <dbl>
#> 1 2026-12-04  4.18

License

This project is licensed under the terms of the MIT license.