Account
Properties
public string Alias { get; set; }
value = account.Alias
account.Alias = value
Client-assigned alias for the Account. Only provided if the Account has an alias set.
public double Balance { get; set; }
value = account.Balance
account.Balance = value
The current balance of the Account. Represented in the Account’s home currency.
public int CreatedByUserId { get; set; }
value = account.CreatedByUserId
account.CreatedByUserId = value
ID of the user that created the Account.
public string CreatedTime { get; set; }
value = account.CreatedTime
account.CreatedTime = value
ID of the user that created the Account.
public string Currency { get; set; }
value = account.Currency
account.Currency = value
The home currency of the Account.
public bool HedgingEnabled { get; set; }
value = account.HedgingEnabled
account.HedgingEnabled = value
Flag indicating that the Account has hedging enabled.
public long? LastTransactionId { get; set; }
value = account.LastTransactionId
account.LastTransactionId = value
The ID of the last Transaction created for the Account.
public double MarginAvailable { get; set; }
value = account.MarginAvailable
account.MarginAvailable = value
Margin available for Account. Represented in the Account’s home currency.
public double MarginCallMarginUsed { get; set; }
value = account.MarginCallMarginUsed
account.MarginCallMarginUsed = value
The Account’s margin call margin used.
public double MarginCallPercent { get; set; }
value = account.MarginCallPercent
account.MarginCallPercent = value
The Account’s margin call percentage. When this value is 1.0 or above the Account is in a margin call situation.
public double MarginCloseoutMarginUsed { get; set; }
value = account.MarginCloseoutMarginUsed
account.MarginCloseoutMarginUsed = value
The Account’s margin closeout margin used.
public double MarginCloseoutPercent { get; set; }
value = account.MarginCloseoutPercent
account.MarginCloseoutPercent = value
The Account’s margin closeout percentage. When this value is 1.0 or above the Account is in a margin closeout situation.
public double MarginCloseoutPositionValue { get; set; }
value = account.MarginCloseoutPositionValue
account.MarginCloseoutPositionValue = value
The value of the Account’s open positions as used for margin closeout calculations represented in the Account’s home currency.
public double MarginCloseoutUnrealizedPnL { get; set; }
value = account.MarginCloseoutUnrealizedPnL
account.MarginCloseoutUnrealizedPnL = value
The Account’s margin closeout unrealized PL.
public double MarginRate { get; set; }
value = account.MarginRate
account.MarginRate = value
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.
public double MarginUsed { get; set; }
value = account.MarginUsed
account.MarginUsed = value
Margin currently used for the Account. Represented in the Account’s home currency.
public int OpenPositionCount { get; set; }
value = account.OpenPositionCount
account.OpenPositionCount = value
The number of Positions currently open in the Account.
public int OpenTradeCount { get; set; }
value = account.OpenTradeCount
account.OpenTradeCount = value
The number of Trades currently open in the Account.
public IEnumerable<Order> Orders { get; set; }
value = account.Orders
account.Orders = value
The details of the Orders currently pending in the Account.
public int PendingOrderCount { get; set; }
value = account.PendingOrderCount
account.PendingOrderCount = value
The number of Orders currently pending in the Account.
public double PnL { get; set; }
value = account.PnL
account.PnL = value
The total profit/loss realized over the lifetime of the Account. Represented in the Account’s home currency.
public IEnumerable<Position> Positions { get; set; }
value = account.Positions
account.Positions = value
The details all Account Positions.
public double PositionValue { get; set; }
value = account.PositionValue
account.PositionValue = value
The value of the Account’s open positions represented in the Account’s home currency.
public double ResettablePnL { get; set; }
value = account.ResettablePnL
account.ResettablePnL = value
The total realized profit/loss for the Account since it was last reset by the client. Represented in the Account’s home currency.
public IEnumerable<TradeData> Trades { get; set; }
value = account.Trades
account.Trades = value
The details of the Trades currently open in the Account.
public double UnrealizedPnL { get; set; }
value = account.UnrealizedPnL
account.UnrealizedPnL = value
The total unrealized profit/loss for all Trades currently open in the Account. Represented in the Account’s home currency.
public double WithdrawalLimit { get; set; }
value = account.WithdrawalLimit
account.WithdrawalLimit = value
The current WithdrawalLimit for the account which will be zero or a positive value indicating how much can be withdrawn from the account.