oanda_instruments: Available OANDA Instruments

View source: R/oanda.R

oanda_instrumentsR Documentation

Available OANDA Instruments

Description

Return list of instruments including major currencies, metals, commodities, government bonds and stock indices for which pricing data is available from the OANDA fxTrade API.

Usage

oanda_instruments(server, apikey)

Arguments

server

(optional) specify the "practice" or "live" server according to the account type held. If not specified, will default to "practice", unless this has been changed by oanda_switch.

apikey

(optional) string containing the OANDA fxTrade API key (personal access token), or function that returns this string. Does not need to be specified if already stored by oanda_set_key(). Can also be entered interactively if not specified.

Details

This function returns a data.frame listing the instrument names available for an account associated with the supplied OANDA fxTrade API key.

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

Value

A data.frame containing the instrument name, full display name, and type.

Examples

## Not run: 
# OANDA fxTrade API key required to run this example
oanda_instruments()

## End(Not run)


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