Learn R Programming

rfinance (version 0.1.0)

get_prices: 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

Run this code
# NOT RUN {
prices <- get_prices('MSFT', from = '2010-04-05', to = '2011-03-02')
# }

Run the code above in your browser using DataLab