getQuote <- function(ticker) {
tolower(ticker)
url <- paste("https://stooq.pl/q/d/l/?s=", ticker, "&i=d", sep = "")
download.file(url, destfile = "quote.csv")
quote <- read.table(file = "quote.csv", sep = ",", header = TRUE, blank.lines.skip = TRUE, fill = TRUE)
file.remove("quote.csv")
return(quote)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.