Learn R Programming

alphavantager (version 0.1.2)

av_api_key: Set the Alpha Vantage API Key

Description

Set the Alpha Vantage API Key

Usage

av_api_key(api_key)

Arguments

api_key

A character string with your Alpha Vantage API Key.

Value

Invisibly returns API key once set. Use print method to view.

Details

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

See Also

av_get()

Examples

Run this code
# NOT RUN {
av_api_key("YOUR_API_KEY")
av_get(symbol = "MSFT", av_fun = "TIME_SERIES_INTRADAY", interval = "15min", outputsize = "full")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab