get_macro_data: Import market data from Quandl and or AlphaVantage

Description Usage Arguments Value

View source: R/get_macro_data.R

Description

Import market data from Quandl and or AlphaVantage

Usage

1
2
3
4
5
6
7
get_macro_data(
  tickers,
  start_date,
  end_date,
  frequency = c("daily", "weekly", "monthly", "quarterly", "annual"),
  adjusted = TRUE
)

Arguments

tickers

character vector of tickers where Quandl data is prefixed with Q- and AlphaVantage data is prefixed with AVST- for stocks and AVFX- for FX

start_date

start date

end_date

end date

frequency

string indicating the frequency of data to retrieve - one of daily, weekly, monthly, quarterly or annual

adjusted

logical indicating whether to retrieve adjusted prices where available

Value

a tbl_df with columns date, ticker, variable and value


ces0491/fdoR documentation built on July 19, 2021, 8:47 a.m.