pub struct CalculatedAccountState {Show 13 fields
pub unrealized_pl: Option<Decimal>,
pub nav: Option<Decimal>,
pub margin_used: Option<Decimal>,
pub margin_available: Option<Decimal>,
pub position_value: Option<Decimal>,
pub margin_closeout_unrealized_pl: Option<Decimal>,
pub margin_closeout_nav: Option<Decimal>,
pub margin_closeout_margin_used: Option<Decimal>,
pub margin_closeout_percent: Option<Decimal>,
pub margin_closeout_position_value: Option<Decimal>,
pub withdrawal_limit: Option<Decimal>,
pub margin_call_margin_used: Option<Decimal>,
pub margin_call_percent: Option<Decimal>,
}Expand description
The dynamically calculated state of a client’s Account.
Fields§
§unrealized_pl: Option<Decimal>The total unrealized profit/loss for all Trades currently open in the Account.
The net asset value of the Account. Equal to Account balance + unrealizedPL.
margin_used: Option<Decimal>Margin currently used for the Account.
margin_available: Option<Decimal>Margin available for Account currency.
position_value: Option<Decimal>The value of the Account’s open positions represented in the Account’s home currency.
margin_closeout_unrealized_pl: Option<Decimal>The Account’s margin closeout unrealized PL.
The Account’s margin closeout NAV.
margin_closeout_margin_used: Option<Decimal>The Account’s margin closeout margin used.
margin_closeout_percent: Option<Decimal>The Account’s margin closeout percentage. When this value is 1.0 or above the Account is in a margin closeout situation.
margin_closeout_position_value: Option<Decimal>The value of the Account’s open positions as used for margin closeout calculations represented in the Account’s home currency.
withdrawal_limit: Option<Decimal>The current WithdrawalLimit for the account which will be zero or a positive value indicating how much can be withdrawn from the account.
margin_call_margin_used: Option<Decimal>The Account’s margin call margin used.
margin_call_percent: Option<Decimal>The Account’s margin call percentage. When this value is 1.0 or above the Account is in a margin call situation.