Description Usage Arguments Value Examples
Get a list of accounts owned by the user
1  | account_list(token, username = NULL, accountType = c("Trade", "Practice"))
 | 
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  | 
A data frame with all the following fields: accountId, accountName, accountCurrency, marginRate
1  | account_list('my_token_1234', 'Practice')
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.