Learn R Programming

alphavantagepf (version 0.3.2)

av_api_key: Set the Alpha Vantage API Key

Description

av_api_key() sets Alphavantage API key and entitlement code

Usage

av_api_key(api_key, entitlement = NULL)

Value

Invisibly returns two item list with API key and entitlement string once set). Use print method to view.

Arguments

api_key

A character string with your Alpha Vantage API Key.

entitlement

A character string with your Alpha Vantage entitlement status. If not "delayed" or "realtime" entitlement not added to API string.

Details

The Alpha Vantage API key must be set prior to using av_get_pf(). You can obtain an API key at the Alpha Vantage Website.

See Also

av_get_pf()

Examples

Run this code
if (FALSE) {
av_api_key("YOUR_API_KEY",entitlement="delayed")
av_get_pf("IBM", "TIME_SERIES_INTRADAY")
}

Run the code above in your browser using DataLab