oanda_set_key: Set OANDA fxTrade API Key

View source: R/oanda.R

oanda_set_keyR Documentation

Set OANDA fxTrade API Key

Description

Save OANDA fxTrade API key (personal access token) to the system credential store.

Usage

oanda_set_key()

Details

The key is read interactively. Separate keys can be set for practice and live accounts - please choose the correct account type when prompted.

This function only needs to be called once to set the key; it does not need to be called each session.

This function has a dependency on the 'keyring' package.

Value

Invisible NULL. A key is set in the default keyring under the service name 'OANDA_API_KEY' for practice accounts or 'OANDA_LIVE_KEY' for live accounts.

Further Details

Please refer to the OANDA fxTrade API vignette by calling: vignette("xoanda", package = "ichimoku").

Examples

if (interactive()) {
# Only run example in interactive R sessions
oanda_set_key()
}


ichimoku documentation built on May 23, 2022, 9:05 a.m.