PnLMessageAdapter

StockSharp.Algo.PnL

The message adapter, automatically calculating profit-loss.

继承自: MessageAdapterWrapper

构造函数

PnLMessageAdapter(IMessageAdapter, IPnLManager)

The message adapter, automatically calculating profit-loss.

innerAdapter
The adapter, to which messages will be directed.
pnlManager
The profit-loss manager.

方法

Clone() : IMessageAdapter

Create a copy of PnLMessageAdapter.

返回值: Copy.

OnInnerAdapterNewOutMessageAsync(Message, CancellationToken) : ValueTask

Process InnerAdapter output message.

message
The message.
cancellationToken
Cancellation token.