av_api_key: Set the Alpha Vantage API Key

Description Usage Arguments Details Value See Also Examples

View source: R/av_api_key.R

Description

Set the Alpha Vantage API Key

Usage

1
av_api_key(api_key)

Arguments

api_key

A character string with your Alpha Vantage API Key.

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.

Value

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

See Also

av_get()

Examples

1
2
3
4
5
## Not run: 
av_api_key("YOUR_API_KEY")
av_get(symbol = "MSFT", av_fun = "TIME_SERIES_INTRADAY", interval = "15min", outputsize = "full")

## End(Not run)

alphavantager documentation built on Sept. 3, 2017, 5:02 p.m.