account_info: Get account information

Description Usage Arguments Examples

Description

Get details for one of the accounts owned by the user

Usage

1
account_info(token, accountId, 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.

accountId

The account id to fetch the list of info for. Can be retrieved with a call of account_list.

accountType

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

Examples

1
account_info('my_token_1234', 'my_account_1234')

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