Interface IPnLManager
- Namespace
- StockSharp.Algo.PnL
- Assembly
- StockSharp.Algo.dll
The interface of the profit-loss calculation manager.
public interface IPnLManager : IPersistable
- Extension Methods
Properties
PnL
Total profit-loss.
decimal PnL { get; }
Property Value
RealizedPnL
The value of realized profit-loss.
decimal RealizedPnL { get; }
Property Value
UnrealizedPnL
The value of unrealized profit-loss.
decimal? UnrealizedPnL { get; }
Property Value
Methods
ProcessMessage(Message, ICollection<PortfolioPnLManager>)
To process the message, containing market data or trade. If the trade was already processed earlier, previous information returns.
PnLInfo ProcessMessage(Message message, ICollection<PortfolioPnLManager> changedPortfolios = null)
Parameters
message
MessageThe message, containing market data or trade.
changedPortfolios
ICollection<PortfolioPnLManager>Changed PortfolioPnLManager list.
Returns
- PnLInfo
Information on new trade.
Reset()
To zero PnL.
void Reset()