This function is a high-level wrapper around the development tools available and should reduce the amount of coding.
fetch(ticker, source, futures, interval, type, to, from, ...)
It returns an xts-object from the desired endpoint.
An character-vector of length 1. See available_tickers()
for available tickers.
A character-vector of length 1. binance
by default. See available_exchanges()
for available exchanges.
A logical-vector of length 1. TRUE by default. Returns futures market if TRUE, spot market otherwise.
A character-vector of length 1. 1d
by default. See available_intervals()
for available intervals.
character-vector of length 1. See details
An optional character, date or POSIXct vector of length 1. NULL by default.
An optional character, date or POSIXct vector of length 1. NULL by default.
additional parameters passed down the endpoint
Serkan Korkmaz
This function can only be used to fetch time-based objects, and can therefore
not be used to get, for example, available_tickers()
.
Other development tools:
GET()
,
convert_date()
,
default_dates()
,
flatten()
,
is.date()