I am trying to use QuantMod to import some data on LiteCoin #cryptocurrency, can that be used for things other than stocks ?
If so what source would I use ? example of code below, thanks!
If Quantmod doesn't support it, what is a good data source to use for importation into R ?
# Get quantmod
if (!require("quantmod")) {
install.packages("quantmod")
library(quantmod)
}
start <- as.Date("2016-11-18")
end <- as.Date("2017-11-18")
getSymbols("LTC.X", src = "???", from = start, to = end)
You can use the ticker "LTC-USD" in yahoo to retrieve LiteCoin data:
library(quantmod)
start <- as.Date("2016-11-18")
end <- as.Date("2017-12-15")
ltcData <- getSymbols("LTC-USD", src = "yahoo", from = start, to = end, auto.assign = FALSE)
candleChart(ltcData, col=TRUE, theme=chartTheme('white'), log.scale=TRUE, name="LTC" )