queryYFchart: Query Yahoo Finance chart for one single ticker. "chart" is...

Description Usage Arguments References Examples

View source: R/queries.R

Description

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.

Usage

1
queryYFchart(ticker, range, interval, from = NULL, time_in_seconds = 0.5)

Arguments

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

References

: https://github.com/dennislwy/YahooFinanceAPI https://www.stock-data-solutions.com/kb/how-to-load-historical-prices-from-yahoo-finance-to-excel.htm

Examples

1
queryYFchart("SAN.MC", "1y", "1wk", from = "2020-08-30")

gabifoix/YHFinR documentation built on March 27, 2021, 9:41 p.m.