This package retrieves the currency exchange rate from oanda website and runs a Graphical User Interface (Shiny App).
devtools::install_github('unimi-dse/1908254a')
# Load the package
require(oandacnh)
The function data_acq()
downloads from oanda website the currency exchange rate defined in brackets.
The list of the currency ISO codes can be found here; the codes have to be separate by /
.
# For example the exchange rate between Euro and Chinese Renminbi
data_acq('EUR/CNH')
The function GUI()
runs a Graphical User Interface to plot data provided by oanda website into an interactive plot (plotly).
In particular, it's possible to select five different currency exchange rate: 'CNH/EUR' , 'CNH/USD' , 'CNH/GBP' , 'CNH/JPY' and 'CNH/CHF' .
GUI()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.