Accounts (table)
Brief
This section describes the Accounts table that contains the trading account data such as funds used in trading, idle funds, profits/losses, certain account limitations, and so on.
Details
Name |
Type |
Description |
||||||||||
AccountID |
String |
The unique identification number of an account. The number is unique within the database where the
account is stored. For example, |
||||||||||
AccountName |
String |
The unique name of the account as it is displayed in the FX Trading Station. The name is unique within
the database where the account is stored. For example, |
||||||||||
Balance |
Double |
The amount of funds on the account. This amount does not include floating profit and loss. It is expressed in the account currency. |
||||||||||
NonTradeEquity |
Double |
The amount of accounting transactions that is applied to the account during the current
trading day. In other words, this amount is a part of the equity balance that reflects non-trading
activity. It is expressed in the account currency and used for calculation of |
||||||||||
M2MEquity |
Double |
The equity balance of the account at the beginning of a trading day. It is expressed in the account currency and
used for calculation of |
||||||||||
UsedMargin |
Double |
The amount of funds used to maintain all open positions on the account. It is expressed in
the account currency. If there are no open positions on the account, the value of this field is |
||||||||||
UsedMargin3 |
Double |
The amount of funds used to maintain all open positions on the account with the three-level
margin policy. It is expressed in the account currency. If there are no open positions on the account, the value of this field is |
||||||||||
AccountKind |
String |
The type of the account. The possible values are:
|
||||||||||
MarginCallFlag |
String |
The limitation state of the account. Each state defines the operations that can be performed on the account. The possible values are:
|
||||||||||
LastMarginCallDate |
Date |
The date and time of the last occurrence of a Margin Call. If the account has never been in the Margin call limitation state, the value of this field is |
||||||||||
MaintenanceType |
String |
The type of the position maintenance. It defines how trade operations can be performed on the account. The possible values are:
|
||||||||||
AmountLimit |
Integer |
The maximum amount of an order that is allowed on the account.
It is expressed in the base currency of the instrument. For example, if the value is |
||||||||||
BaseUnitSize |
Integer |
The size of one lot. In other words, the minimum amount of a position that is allowed on the account.
It is expressed in the base currency of the instrument. For example, if the value is |
||||||||||
MaintenanceFlag |
Boolean |
The rollover maintenance flag. It defines whether the account is under a rollover maintenance or not. The possible values are:
It is applicable only for funds manager accounts (see |
||||||||||
ManagerAccountID |
String |
The unique identification number of the funds manager account.
The number is unique within the database where the account is stored. For example, It is applicable only for managed accounts. For all other account types, the value of this field is blank. |
||||||||||
LeverageProfileID |
String |
The unique identification number of the account leverage profile which defines the margin requirements. |
||||||||||
DayPL |
Double |
The amount of profits and losses (both floating and realized) of the current trading day. It is expressed in the account currency. A trading day is from
17:00 through 17:00 Eastern Time (UTC-5). |
||||||||||
Equity |
Double |
The amount of funds on the account, including profits and losses of all open positions (the floating
balance of the account). It is expressed in the account currency. |
||||||||||
GrossPL |
Double |
The amount of profits and losses of all open positions on the account. It is expressed in the account currency. The GrossPL equals the difference between the Equity and the Balance of the
account. |
||||||||||
UsableMargin |
Double |
The amount of funds available to open new positions or to absorb losses of the existing positions. It is expressed in the account currency. Once the UsableMargin
reaches zero, the margin call order is triggered for the account and the positions are automatically liquidated at the best
available price. Added together, the UsableMargin and UsedMargin make up the Equity of the account. |