powered by
av_api_key() sets Alphavantage API key and entitlement code
av_api_key()
av_api_key(api_key, entitlement = NULL)
Invisibly returns two item list with API key and entitlement string once set). Use print method to view.
A character string with your Alpha Vantage API Key.
A character string with your Alpha Vantage entitlement status. If not "delayed" or "realtime" entitlement not added to API string.
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.
av_get_pf()
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