Account Interface

com.oanda.fxtrade.api

Interface Account

public interface Account

An Account object represents an existing Oanda account. Accounts cannot be created through this API. Accounts are identified by a unique integer id (accountId). Current open trades, orders and transactions are maintained and kept up-to-date within the object.

getAccountName

Returns the account name.

java.lang.String getAccountName()

getBalance

Returns the most up-to-date account balance, querying the server if neccessary.

Returns: The account balance Throws: AccountException

double getBalance() throws AccountException

Find more information about Account here