get_exchange_rate: Exchange Rate

Description Usage Arguments Source Examples

View source: R/exchange_rate.R

Description

This function allows you to obtain currency exchange rates from the Interbank Foreign Exchange Market in Kuala Lumpur from the BNM API. The price of selected countries currency in relation to Ringgit.

Usage

1
get_exchange_rate(currency = NULL, session = "1130", quote = "rm")

Arguments

currency

3-characters currency code based on ISO4217 standard

session

Character string "0900", "1130", "1200" or "1700". A snapshot of the exchange rate daily at 0900, 1130, 1200 and 1700 intervals

quote

Base currency (Ringgit ("rm") or foreign currency ("fx")) as the denominator for the exchange rate

Source

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

Examples

1

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