getTradingDays <- function(start_date, end_date, type = "dt") {
spy <- getDailyOHLCV(settings$quotemedia.sqli, "SPY", start_date, end_date)
aapl <- getDailyOHLCV(settings$sharadar.sqli, "AAPL", start_date, end_date)
dates <- spy[aapl, on = "date", all = TRUE][, .(date)]
if (type == "vec") {
dates <- dates$date
}
return (dates)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.