IPnLManager

StockSharp.Algo.PnL

The interface of the profit-loss calculation manager.

实现: IPersistable, ICloneable<IPnLManager>, ICloneable

属性

RealizedPnL : decimal

The value of realized profit-loss.

UnrealizedPnL : decimal

The value of unrealized profit-loss.

方法

ProcessMessage(Message, ICollection<PortfolioPnLManager>) : PnLInfo

To process the message, containing market data or trade. If the trade was already processed earlier, previous information returns.

message
The message, containing market data or trade.
changedPortfolios
Changed PortfolioPnLManager list.

返回值: Information on new trade.

Reset()

To zero PnL.

UpdateSecurity(Level1ChangeMessage)

Update the security information.

l1Msg
Level1ChangeMessage