get_prices: Download historic prices of a given company

View source: R/get_prices.R

get_pricesR Documentation

Download historic prices of a given company

Description

This function retrieves all available historic prices of a given company. This company is specified using the 'symbol' argument. All available symbols can be found using 'get_symbols_list()'

Usage

get_prices(symbol, from = "1970-01-01", to = Sys.Date())

Arguments

symbol

String that specifies the ticker/symbol of the company we want to download its prices.

from

Minimum date to get data from.

to

Maximum date to get data of.

Value

Returns a tibble.

Examples


prices <- get_prices('MSFT', from = '2010-04-05', to = '2011-03-02')

aljrico/rfinance documentation built on March 29, 2024, 2:31 a.m.