This function allows you to obtain data on Overnight Policy Rate (OPR) decided by the Monetary Policy Committee from the BNM API.

## Usage

get_opr(year = NULL)

## Source

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

## Arguments

year

Optional. Integer value above 2000. Series of integer values also supported (experimental).

## Details

This function has initial support for vectorisation, i.e. returning a single tibble given a vector of years as arguments.

## Examples

if (FALSE) get_opr()
get_opr(2018:2019)
#> Error in get_opr(2018:2019): could not find function "get_opr"