get_FX: Downloading Foreign Currency Exchange Data

Description Usage Arguments Value Author(s) See Also Examples

View source: R/get_FX.R

Description

Obtains foreign currency exchange rate from the Republican Currency Exchange over the period given

Usage

1
get_FX(currency = c("USD", "EUR"), from = "01-10-2020", to = "dd-mm-YYYY")

Arguments

currency

A currency code according to ISO 4217 (e.g. USD or EUR)

from

A string representing the start date of the period of interest in date-month-year date format

to

A string representing the end date of the period of interest in date-month-year date format

Value

Returns a data frame

Author(s)

Alisher Suyunov

See Also

getSecurities or RegisteredSecurities to see the complete list of available securities

getTicker to download stock market prices

getMarketIndex to download stock market indices by sector

Examples

1
2
3
4
 ## Not run: 
 get_FX("USD")
 get_FX("EUR", from = "01-01-2018", to = "12-10-2020")
## End(Not run)

alishersuyunov/opendatauzb documentation built on Nov. 9, 2020, 1:21 p.m.