Interface IPosition
- Namespace
- Balsam
- Assembly
- Balsam.Common.dll
Defines the contract a position must implement.
public interface IPosition : IPortfolioHolding
- Inherited Members
- Extension Methods
Properties
BarsSinceEntry
Gets the number of bars since entry.
int BarsSinceEntry { get; }
Property Value
EntryDate
Gets the first entry date.
DateTime EntryDate { get; }
Property Value
EntryPrice
Gets the average entry price.
double EntryPrice { get; }
Property Value
Id
Gets the position id.
long Id { get; }
Property Value
Instrument
Gets the instrument.
IInstrument Instrument { get; }
Property Value
LastDate
Gets the date of the last price update or the date on which the position was closed.
DateTime LastDate { get; }
Property Value
LastPrice
Gets the last price or the exit price if the position has been closed.
double LastPrice { get; }
Property Value
PnL
Gets the P&L.
double PnL { get; }
Property Value
PnLPercent
Gets the P&L is percentage terms.
double PnLPercent { get; }
Property Value
Side
Gets the position side.
PositionSide Side { get; }
Property Value
StrategyName
Gets the strategy name.
string StrategyName { get; }
Property Value
Variables
Gets a collection of variables.
IDictionary<string, object> Variables { get; }