Skip to contents

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)

Source

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

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.

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

Examples

if (FALSE) get_usd_interbank_intraday_rate()
get_usd_interbank_intraday_rate(date = "2018-01-03")
#> Error in get_usd_interbank_intraday_rate(date = "2018-01-03"): could not find function "get_usd_interbank_intraday_rate"
get_usd_interbank_intraday_rate(year = 2016, month = 2)
#> Error in get_usd_interbank_intraday_rate(year = 2016, month = 2): could not find function "get_usd_interbank_intraday_rate"
if (FALSE) get_kl_usd_reference_rate()
get_kl_usd_reference_rate(date = "2018-01-03")
#> Error in get_kl_usd_reference_rate(date = "2018-01-03"): could not find function "get_kl_usd_reference_rate"
get_kl_usd_reference_rate(year = 2016, month = 2)
#> Error in get_kl_usd_reference_rate(year = 2016, month = 2): could not find function "get_kl_usd_reference_rate"