getStock | R Documentation |
Wrapper to AV API. Requires free or premium key.
getStock(
symbol,
period = "daily",
interval = NULL,
datatype = "json",
key = "premium"
)
symbol |
stock ticker to look up |
period |
period: "intraday", "daily", "weekly", "monthly" |
interval |
NULL for anything but intraday otherwise "1min", "5min", "15min", "30min", "60min" |
datatype |
"json" or "csv" |
key |
"premium" or "free"; the type of API key obtained from AV |
The argument 'interval' is only to be specified for period = 'intraday'.
parsed json or csv file
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.