Obtain currency exchange rates from the Interbank Foreign Exchange Market in Kuala Lumpur in relation to Ringgit.
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
Examples
get_exchange_rate()
#> # A tibble: 7 × 3
#> currency_code unit rate$date $buying_rate $selling_rate $middle_rate
#> <chr> <int> <chr> <dbl> <dbl> <lgl>
#> 1 JPY 100 2022-10-13 3.17 3.21 NA
#> 2 SGD 1 2022-10-13 3.24 3.29 NA
#> 3 USD 1 2022-10-13 4.67 4.70 NA
#> 4 GBP 1 2022-10-13 5.17 5.22 NA
#> 5 AUD 1 2022-10-13 2.92 2.97 NA
#> 6 CAD 1 2022-10-13 3.37 3.41 NA
#> 7 EUR 1 2022-10-13 4.53 4.57 NA