pub struct AccountSummary {Show 38 fields
pub id: Option<AccountID>,
pub alias: Option<String>,
pub currency: Option<Currency>,
pub created_by_user_id: Option<i64>,
pub created_time: Option<Timestamp>,
pub guaranteed_stop_loss_order_parameters: Option<GuaranteedStopLossOrderParameters>,
pub guaranteed_stop_loss_order_mode: Option<GuaranteedStopLossOrderMode>,
pub guaranteed_stop_loss_order_mutability: Option<GuaranteedStopLossOrderMutability>,
pub resettable_pl_time: Option<Timestamp>,
pub margin_rate: Option<Decimal>,
pub open_trade_count: Option<i64>,
pub open_position_count: Option<i64>,
pub pending_order_count: Option<i64>,
pub hedging_enabled: Option<bool>,
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>,
pub balance: Option<Decimal>,
pub pl: Option<Decimal>,
pub resettable_pl: Option<Decimal>,
pub financing: Option<Decimal>,
pub commission: Option<Decimal>,
pub dividend_adjustment: Option<Decimal>,
pub guaranteed_execution_fees: Option<Decimal>,
pub margin_call_enter_time: Option<Timestamp>,
pub margin_call_extension_count: Option<i64>,
pub last_margin_call_extension_time: Option<Timestamp>,
pub last_transaction_id: Option<TransactionID>,
}Expand description
A summary representation of a client’s Account. The AccountSummary does not provide a full specification of pending Orders, open Trades and Positions.
Fields§
§id: Option<AccountID>The Account’s identifier
alias: Option<String>Client-assigned alias for the Account. Only provided if the Account has an alias set
currency: Option<Currency>The home currency of the Account
created_by_user_id: Option<i64>ID of the user that created the Account.
created_time: Option<Timestamp>The date/time when the Account was created.
guaranteed_stop_loss_order_parameters: Option<GuaranteedStopLossOrderParameters>The current guaranteed Stop Loss Order settings of the Account. This field will only be present if the guaranteedStopLossOrderMode is not ‘DISABLED’.
guaranteed_stop_loss_order_mode: Option<GuaranteedStopLossOrderMode>The current guaranteed Stop Loss Order mode of the Account.
guaranteed_stop_loss_order_mutability: Option<GuaranteedStopLossOrderMutability>The current guaranteed Stop Loss Order mutability setting of the Account. This field will only be present if the guaranteedStopLossOrderMode is not ‘DISABLED’. Deprecated: Will be removed in a future API update.
resettable_pl_time: Option<Timestamp>The date/time that the Account’s resettablePL was last reset.
margin_rate: Option<Decimal>Client-provided margin rate override for the Account. The effective margin rate of the Account is the lesser of this value and the OANDA margin rate for the Account’s division. This value is only provided if a margin rate override exists for the Account.
open_trade_count: Option<i64>The number of Trades currently open in the Account.
open_position_count: Option<i64>The number of Positions currently open in the Account.
pending_order_count: Option<i64>The number of Orders currently pending in the Account.
hedging_enabled: Option<bool>Flag indicating that the Account has hedging enabled.
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.
balance: Option<Decimal>The current balance of the account.
pl: Option<Decimal>The total profit/loss realized over the lifetime of the Account.
resettable_pl: Option<Decimal>The total realized profit/loss for the account since it was last reset by the client.
financing: Option<Decimal>The total amount of financing paid/collected over the lifetime of the account.
commission: Option<Decimal>The total amount of commission paid over the lifetime of the Account.
dividend_adjustment: Option<Decimal>The total amount of dividend adjustment paid over the lifetime of the Account in the Account’s home currency.
guaranteed_execution_fees: Option<Decimal>The total amount of fees charged over the lifetime of the Account for the execution of guaranteed Stop Loss Orders.
margin_call_enter_time: Option<Timestamp>The date/time when the Account entered a margin call state. Only provided if the Account is in a margin call.
margin_call_extension_count: Option<i64>The number of times that the Account’s current margin call was extended.
last_margin_call_extension_time: Option<Timestamp>The date/time of the Account’s last margin call extension.
last_transaction_id: Option<TransactionID>The ID of the last Transaction created for the Account.