Learn R Programming

ichimoku (version 1.5.5)

oanda_switch: Switch Default OANDA Server

Description

Switch the default OANDA fxTrade server from ‘practice’ to ‘live’ or vice versa. Settings persist for the current session only.

Usage

oanda_switch()

Arguments

Value

Invisible NULL. A message informs the resulting default server setting.

Details

The default server at the start of a new session is the practice server. Call this function to switch to the live server.

This function can be used to toggle between the practice and live servers. Any cached variables for API key, account or instruments list are cleared each time this function is called.

For further details please refer to the OANDA fxTrade API vignette by calling: vignette("xoanda", package = "ichimoku").

Examples

Run this code
oanda_switch()
oanda_switch()

Run the code above in your browser using DataLab