Account

StockSharp.Oanda.Native.DataTypes

Properties

Alias
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.

Balance
public double Balance { get; set; }
value = account.Balance
account.Balance = value

The current balance of the Account. Represented in the Account’s home currency.

CreatedByUserId
public int CreatedByUserId { get; set; }
value = account.CreatedByUserId
account.CreatedByUserId = value

ID of the user that created the Account.

CreatedTime
public string CreatedTime { get; set; }
value = account.CreatedTime
account.CreatedTime = value

ID of the user that created the Account.

Currency
public string Currency { get; set; }
value = account.Currency
account.Currency = value

The home currency of the Account.

HedgingEnabled
public bool HedgingEnabled { get; set; }
value = account.HedgingEnabled
account.HedgingEnabled = value

Flag indicating that the Account has hedging enabled.

Id
public string Id { get; set; }
value = account.Id
account.Id = value

The Account’s identifier.

LastTransactionId
public long? LastTransactionId { get; set; }
value = account.LastTransactionId
account.LastTransactionId = value

The ID of the last Transaction created for the Account.

MarginAvailable
public double MarginAvailable { get; set; }
value = account.MarginAvailable
account.MarginAvailable = value

Margin available for Account. Represented in the Account’s home currency.

MarginCallMarginUsed
public double MarginCallMarginUsed { get; set; }
value = account.MarginCallMarginUsed
account.MarginCallMarginUsed = value

The Account’s margin call margin used.

MarginCallPercent
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.

MarginCloseoutMarginUsed
public double MarginCloseoutMarginUsed { get; set; }
value = account.MarginCloseoutMarginUsed
account.MarginCloseoutMarginUsed = value

The Account’s margin closeout margin used.

MarginCloseoutNav
public double MarginCloseoutNav { get; set; }
value = account.MarginCloseoutNav
account.MarginCloseoutNav = value

The Account’s margin closeout NAV.

MarginCloseoutPercent
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.

MarginCloseoutPositionValue
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.

MarginCloseoutUnrealizedPnL
public double MarginCloseoutUnrealizedPnL { get; set; }
value = account.MarginCloseoutUnrealizedPnL
account.MarginCloseoutUnrealizedPnL = value

The Account’s margin closeout unrealized PL.

MarginRate
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.

MarginUsed
public double MarginUsed { get; set; }
value = account.MarginUsed
account.MarginUsed = value

Margin currently used for the Account. Represented in the Account’s home currency.

Nav
public double Nav { get; set; }
value = account.Nav
account.Nav = value

The net asset value of the Account. Equal to Account balance + unrealizedPL. Represented in the Account’s home currency.

OpenPositionCount
public int OpenPositionCount { get; set; }
value = account.OpenPositionCount
account.OpenPositionCount = value

The number of Positions currently open in the Account.

OpenTradeCount
public int OpenTradeCount { get; set; }
value = account.OpenTradeCount
account.OpenTradeCount = value

The number of Trades currently open in the Account.

Orders
public IEnumerable<Order> Orders { get; set; }
value = account.Orders
account.Orders = value

The details of the Orders currently pending in the Account.

PendingOrderCount
public int PendingOrderCount { get; set; }
value = account.PendingOrderCount
account.PendingOrderCount = value

The number of Orders currently pending in the Account.

PnL
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.

Positions
public IEnumerable<Position> Positions { get; set; }
value = account.Positions
account.Positions = value

The details all Account Positions.

PositionValue
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.

ResettablePnL
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.

Trades
public IEnumerable<TradeData> Trades { get; set; }
value = account.Trades
account.Trades = value

The details of the Trades currently open in the Account.

UnrealizedPnL
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.

WithdrawalLimit
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.