download_tiingo: Download time-series from Tiingo

Description Usage Arguments Details Value Examples

View source: R/DownloadData.R

Description

Download time-series from Tiingo

Usage

1
download_tiingo(ticker, tiingo_api, try_mode = TRUE)

Arguments

ticker

string representing ticker or symbol to download

tiingo_api

string containing your Tiingo API, see details

try_mode

boolean to use try-error handling

Details

https://www.tiingo.com/ is a free source for financial time-series, you need to sign up to create an account to get an API. Use your API as a string for the tiingo_api parameter.

Value

data.frame containing dates and returns

Examples

1
2
tiingo_api <- 'YourTiingoAPI'
spy <- download_tiingo('spy', tiingo_api)

alejandro-sotolongo/InvestmentSuite documentation built on Jan. 19, 2020, 5:20 p.m.