get_prices: Download historic prices of a given company

Description Usage Arguments Value Examples

View source: R/get_prices.R

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

1
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

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

aljrico/rfinance documentation built on Nov. 13, 2021, 8:48 a.m.