Skip to contents

Malaysia Overnight Rate - I

Usage

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

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

Examples

if (FALSE) get_overnight_rate()
get_overnight_rate(date = "2022-05-05")
#> # A tibble: 1 × 3
#>   reference_date reference_rate aggregate_volume
#>   <chr>          <chr>          <chr>           
#> 1 2022-05-05     1.74           23642.90        
get_overnight_rate(year = 2022, month = 5)
#> # A tibble: 18 × 3
#>    reference_date reference_rate aggregate_volume
#>    <chr>          <chr>          <chr>           
#>  1 2022-05-05     1.74           23642.90        
#>  2 2022-05-06     1.75           23977.60        
#>  3 2022-05-09     1.73           21970.30        
#>  4 2022-05-10     1.69           25134.10        
#>  5 2022-05-11     1.94           26474.70        
#>  6 2022-05-12     1.99           21897.30        
#>  7 2022-05-13     1.96           24911.10        
#>  8 2022-05-17     1.92           19829.00        
#>  9 2022-05-18     1.95           20096.50        
#> 10 2022-05-19     1.96           21513.40        
#> 11 2022-05-20     1.96           23137.70        
#> 12 2022-05-23     1.96           26742.90        
#> 13 2022-05-24     1.99           29034.20        
#> 14 2022-05-25     1.99           26342.60        
#> 15 2022-05-26     2.00           25301.60        
#> 16 2022-05-27     2.00           21929.30        
#> 17 2022-05-30     2.00           23067.94        
#> 18 2022-05-31     2.00           20133.90