Position

StockSharp.Oanda.Native.DataTypes

Properties

Instrument
public string Instrument { get; set; }
value = position.Instrument
position.Instrument = value

The Position’s Instrument.

Long
public PositionSide Long { get; set; }
value = position.Long
position.Long = value

The details of the long side of the Position.

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

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

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

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

Short
public PositionSide Short { get; set; }
value = position.Short
position.Short = value

The details of the short side of the Position.

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

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