usd_interbank_intraday_rate: USD Interbank Intraday Rate

Description Usage Arguments Source Examples

View source: R/monthly.R

Description

This function allows you to obtain USD/MYR interbank intraday highest and lowest rate from the BNM API. Rates are obtained from the best U.S. dollar against Malaysian ringgit interbank highest and lowest dealt rates by commercial banks on the specific date.

Usage

1

Arguments

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
## Not run: usd_interbank_intraday_rate()
usd_interbank_intraday_rate(date = "2018-01-03")
usd_interbank_intraday_rate(year = 2016, month = 2)

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