get_interest_rate: Interest Rate

Description Usage Arguments Source Examples

View source: R/monthly.R

Description

This function allows you to obtain daily interbank money market rates and volumes of transactions according to tenure. (2015 - present) from the BNM API.

Usage

1
2
3
4
5
6
get_interest_rate(
  product = "money_market_operations",
  date = NULL,
  year = NULL,
  month = NULL
)

Arguments

product

One of "money_market_operations", "interbank" or "overall"

date

Character string of date with format as defined by RFC 3339, section 5.6 (YYYY-MM-DD). If specified, return values for the specified date.

year

Year and month as integers. If date, year and month left blank, return today's values.

month

Year and month as integers. If date, year and month left blank, return today's values.

Source

https://api.bnm.gov.my/

Examples

1
2
3
4
## Not run: get_interest_rate()
get_interest_rate(date = "2018-01-01")
get_interest_rate(year = 2016, month = 2)
get_interest_rate(product = "overall", year = 2016, month = 2)

philip-khor/bnmr documentation built on Oct. 19, 2021, 1:10 p.m.