Obtain daily trading prices of Malaysia gold bullion coin from the BNM API.
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.
Examples
if (FALSE) get_kijang_emas()
get_kijang_emas(date = "2020-09-01")
#> # A tibble: 2 × 4
#> effective_date one_oz half_oz quarter_oz
#> <chr> <named list> <named list> <named list>
#> 1 2020-09-01 <int [1]> <int [1]> <int [1]>
#> 2 2020-09-01 <int [1]> <int [1]> <int [1]>
get_kijang_emas(year = 2016, month = 2)
#> # A tibble: 0 × 0