forex_rates: Interbank forex rates

forex_ratesR Documentation

Interbank forex rates

Description

Interbank forex rates

Usage

get_usd_interbank_intraday_rate(date = NULL, year = NULL, month = NULL)

get_kl_usd_reference_rate(date = NULL, year = NULL, month = NULL)

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, month

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

Details

USD Interbank Intraday Rate: 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. KL USD Reference Rate: Obtain a reference rate that is computed based on weighted average volume of the interbank USD/MYR FX spot rate transacted by the domestic financial institutions and published daily at 3:30 p.m from the BNM API.

Functions

  • get_usd_interbank_intraday_rate(): USD Interbank Intraday Rate

  • get_kl_usd_reference_rate(): KL USD Reference Rate

Source

https://apikijangportal.bnm.gov.my/

Examples

## Not run: get_usd_interbank_intraday_rate()
get_usd_interbank_intraday_rate(date = "2018-01-03")
get_usd_interbank_intraday_rate(year = 2016, month = 2)
## Not run: get_kl_usd_reference_rate()
get_kl_usd_reference_rate(date = "2018-01-03")
get_kl_usd_reference_rate(year = 2016, month = 2)

philip-khor/bnmr documentation built on Nov. 23, 2023, 6:59 a.m.