fetch | R Documentation |
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, ...)
ticker |
A character-vector of length 1.
See |
source |
A character-vector of length 1. |
futures |
A logical-vector of length 1. TRUE by default. Returns futures market if TRUE, spot market otherwise. |
interval |
A character-vector of length 1. |
type |
character-vector of length 1. One of,
|
to |
An optional character-, date- or POSIXct-vector of length 1. NULL by default. |
from |
An optional character-, date- or POSIXct-vector of length 1. NULL by default. |
... |
additional parameters passed down the endpoint |
This function can only be used to fetch time-based objects,
and can therefore not be used to get, for example, available_tickers()
.
It returns an xts::xts-object from the desired endpoint.
Serkan Korkmaz
Other development tools:
GET()
,
chart_layout()
,
convert_date()
,
default_dates()
,
flatten()
,
is.date()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.