fetch_currency: Fetches currency series from DataHub

Description Usage Arguments Value Examples

View source: R/currency.R

Description

Fetches currency series from DataHub

Usage

1
fetch_currency(code, source_code, query = list())

Arguments

code

the code of the currency series

source_code

the source code of the currency series

query

optional, availible list(from = yyyy-mm-dd, to = yyyy-mm-dd)

Value

dataframe

code

currency code

source_code

source code

date

series date

ask_rate

currency ask rate if availible

bid_rate

currency bid rate if availible

mid_rate

currency mid rate

Examples

1
2
fetch_currency('DKK-ISK', 'SI')
fetch_currency('DKK-ISK', 'SI', query = list(from = '2019-01-01', to = '2019-02-01'))

palmargisla/datahub-r documentation built on Sept. 18, 2019, 9:50 p.m.