Skip to contents

Downloads all available historical daily data for stock_ticker from Yahoo finance and stores it as a csv file in data folder as a sub directory of the current working directory If data folder does not exist it is created.

Usage

get_data(stock_ticker, start_date)

Arguments

stock_ticker

string Ticker of the stock such as "MSFT"

start_date

starting date from which data needs to be downloaded

Examples

get_data("MSFT", "1986-03-13")
#> Registered S3 method overwritten by 'quantmod':
#>   method            from
#>   as.zoo.data.frame zoo