class O2GAccountRow

Parents
O2GRow

Brief

The class provides access to account information.

Details

An instance of the class can be obtained by the following methods:

Method/Use

Prerequisites

O2GAccountsTableResponseReader.getRow
This method is used to get the initial account information after a session with the trading server is established.
This method provides access to a single account. If you have multiple accounts, call this method in a loop.

Depending on the trading server settings, the Accounts table may or may not be loaded by the server automatically during a login process.
To determine whether the table is loaded or not and what follow-up action is required to get the account information, use the returned value of the O2GLoginRules.isTableLoadedByDefault method:

Both methods use the O2GResponse object of the O2GResponseType.GET_ACCOUNTS type.
You must parse this object using the O2GAccountsTableResponseReader object.
For details, see the example below.

O2GTablesUpdatesReader.getAccountRow

This method is used to get account information updates.
This method provides access to a single account. If you have multiple accounts, call this method in a loop.

To receive the account information updates, you must implement the IO2GResponseListener.onTablesUpdates method. The received O2GResponse object is of the O2GResponseType.TABLES_UPDATES type.
You must parse this object by using the O2GTablesUpdatesReader object.

For details, see the example below.

Example

Get Account ID, Balance and Used margin [show]

The derived class is O2GAccountTableRow.
The namespace is com.fxcore2.

Public Methods

getAccountID

Gets the unique identification number of the account.

getAccountKind

Gets the type of the account.

getAccountName

Gets the unique name of the account as it is displayed in the FX Trading Station.

getAmountLimit

Gets the maximum amount of an order that is allowed on the account.

getBalance

Gets the amount of funds on the account.

getBaseUnitSize

Gets the size of one lot.

getCell

Gets a cell of the table.

getColumns

Gets the columns of the table.

getLastMarginCallDate

Gets the date and time of the last occurrence of a Margin Call.

getLeverageProfileID

Gets the unique identification number of an account leverage profile that defines margin requirements.

getM2MEquity

Gets the equity balance of the account at the beginning of a trading day.

getMaintenanceFlag

Gets a rollover maintenance flag.

getMaintenanceType

Gets the type of a position maintenance.

getManagerAccountID

Gets the unique identification number of the funds manager account.

getMarginCallFlag

Gets the limitation state of the account.

getNonTradeEquity

Gets the amount of the accounting transactions that is applied to the account during the current trading day.

getTableType

Gets the type of the table.

getUsedMargin

Gets the amount of funds used to maintain all open positions of the account.

getUsedMargin3

Gets the amount of funds used to maintain all open positions of the account with a three-level margin policy.

isCellChanged

Gets a flag indicating whether the value of the cell is changed.

back