account_list: Get accounts for a user

Description Usage Arguments Value Examples

Description

Get a list of accounts owned by the user

Usage

1
account_list(token, username = NULL, accountType = c("Trade", "Practice"))

Arguments

token

The personal access token. There is a link on your OANDA fxTrade account profile page titled 'Manage API Access' (My Account -> My Services -> Manage API Access). From there, you can generate a personal access token to use with the OANDA API, as well as revoke a token you may currently have.

username

The name of the user. Note: This is only required on the sandbox, on our production systems your access token will identify you.

accountType

The subdomain for the request is dependent on the environment you wish to obtain access tokens for. Possible choices are Practice or Trade

Value

A data frame with all the following fields: accountId, accountName, accountCurrency, marginRate

Examples

1
account_list('my_token_1234', 'Practice')

RossiLorenzo/oandaR documentation built on May 9, 2019, 10:32 a.m.