Description Usage Arguments References Examples
Query Yahoo Finance chart for one single ticker. "chart" is the section where the historical prices are stored. Returns a data.frame with "Date" column as character and "volume", "close" and "adjclose" as numeric.
1 | queryYFchart(ticker, range, interval, from = NULL, time_in_seconds = 0.5)
|
range |
character Valid Ranges: 1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, ytd, max |
interval |
character Valid Intervals: 1d, 1wk, 1mo |
from |
Date "YYYY-MM-DD" from which the range counts back. Default Sys.Date |
time_in_seconds |
: https://github.com/dennislwy/YahooFinanceAPI https://www.stock-data-solutions.com/kb/how-to-load-historical-prices-from-yahoo-finance-to-excel.htm
1 | queryYFchart("SAN.MC", "1y", "1wk", from = "2020-08-30")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.