riingo_fx_prices {riingo} | R Documentation |
Forex - Prices
Description
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.
Usage
riingo_fx_prices(
ticker,
start_date = NULL,
end_date = NULL,
resample_frequency = "1day"
)
Arguments
ticker |
One or more fx tickers to download financial metrics for, such
as |
start_date |
The first date to download data for.
A character in the form YYYY-MM-DD, or a |
end_date |
The last date to download data for.
A character in the form YYYY-MM-DD, or a |
resample_frequency |
A single character specified at the |
Value
A data frame containing the fx prices for the requested tickers.
Examples
## Not run:
start <- Sys.Date() - 10
riingo_fx_prices(c("audusd", "eurusd"), start_date = start)
## End(Not run)
[Package riingo version 0.3.1 Index]