PositionSide

StockSharp.Oanda.Native.DataTypes

Properties

AveragePrice
public double? AveragePrice { get; set; }
value = positionSide.AveragePrice
positionSide.AveragePrice = value

Volume-weighted average of the underlying Trade open prices for the Position.

PnL
public double? PnL { get; set; }
value = positionSide.PnL
positionSide.PnL = value

Profit/loss realized by the PositionSide over the lifetime of the Account.

ResettablePnL
public double? ResettablePnL { get; set; }
value = positionSide.ResettablePnL
positionSide.ResettablePnL = value

Profit/loss realized by the PositionSide since the Account’s resettablePL was last reset by the client.

TradeIds
public IEnumerable<long> TradeIds { get; set; }
value = positionSide.TradeIds
positionSide.TradeIds = value

List of the open Trade IDs which contribute to the open Position.

Units
public double Units { get; set; }
value = positionSide.Units
positionSide.Units = value

Number of units in the position (negative value indicates short position, positive indicates long position).

UnrealizedPnL
public double? UnrealizedPnL { get; set; }
value = positionSide.UnrealizedPnL
positionSide.UnrealizedPnL = value

The unrealized profit/loss of all open Trades that contribute to this PositionSide.