Description Usage Arguments Value
View source: R/getDailyOHLCV.R
Get stock daily OHLCV and it's adjusted price from QuoteMedia EOD Prices
1 2 3 4 5 | getDailyOHLCVQuoteMedia(dbcon_str, symbol = "AAPL",
start_date = "1980-01-02", end_date = Sys.Date(),
columns = c("adj.open", "adj.high", "adj.low", "adj.close",
"adj.volume", "open", "high", "low", "close", "volume", "dividend",
"split"), keep_symbol = TRUE)
|
dbcon_str |
Connection string for Sharadar or QuoteMedia. |
symbol |
Stock symbol. |
start_date |
Start date by "yyyy-mm-dd" format. |
end_date |
End date by "yyyy-mm-dd" format. |
columns |
Columns to retrieve. (Valid columns fro Sharadar = open, high, low, close, adj.open, adj.high, adj.low, adj.close, volume, dividend and lastupdated, for QuoteMedia = open, high, low, close, volume, adj.open, adj.high, adj.low, adj.close, adj.volume, dividend and split) |
keep_symbol |
whether to keep symbol column |
OHLCV and it's adjusted price by date as data.table format
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.