gather_stock_time_series: Given the ticker, start date, and end date, return from the...

Description Usage Arguments Value Examples

View source: R/rintrinio.R

Description

Given the ticker, start date, and end date, return from the Intrinio API stock data for that time frame in either a dictionary or a pandas dataframe format.

Usage

1
2
3
4
5
6
7
gather_stock_time_series(
  api_key,
  ticker,
  start_date = "",
  end_date = "",
  allow_max_rows = FALSE
)

Arguments

api_key

character API key (sandbox or production) from Intrinio

ticker

character the ticker symbol you would like to get stock data for

start_date

character optional the earliest date in the format of " e.g. "2019-12-31" to get data for

end_date

character optional the most recent date in the format of " e.g. "2019-12-31" to get data for

allow_max_rows

boolean optional if False, then only 100 rows will show in the output, otherwise up to 10000 rows will show (based on dates)

Value

a dataframe that contains stock data for the specified timeframe

Examples

1
2
gather_stock_time_series('OjhlMjhjNTBmY2IyMWJiMWE0MTExYjQwNWZmZTVkZWM1', 'AAPL',
"2017-12-31", "2019-03-01")

UBC-MDS/rintrinio documentation built on March 31, 2020, 12:54 a.m.