powered by
This function collects forex prices for specified tickers. It can return daily, hourly, and minutely data, however, the amount of returned data becomes more limited with a finer resolution.
riingo_fx_prices( ticker, start_date = NULL, end_date = NULL, resample_frequency = "1day" )
One or more fx tickers to download financial metrics for, such as "audusd" or "eurusd".
"audusd"
"eurusd"
The first date to download data for. A character in the form YYYY-MM-DD, or a Date variable. The default is to download 1 year's worth of data.
Date
The last date to download data for. A character in the form YYYY-MM-DD, or a Date variable.
A single character specified at the "day", "min" or "hour" frequencies in the form: "1day", "1min", "5min", or "2hour".
"day"
"min"
"hour"
"1day"
"1min"
"5min"
"2hour"
A data frame containing the fx prices for the requested tickers.
# NOT RUN { start <- Sys.Date() - 10 riingo_fx_prices(c("audusd", "eurusd"), start_date = start) # }
Run the code above in your browser using DataLab