Table of Contents

Class PositionMessageAdapter

Namespace
StockSharp.Algo.Positions
Assembly
StockSharp.Algo.dll

The message adapter, automatically calculating position.

public class PositionMessageAdapter : MessageAdapterWrapper, IMessageAdapterWrapper, IMessageAdapter, IMessageChannel, ICloneable<IMessageChannel>, ICloneable, IPersistable, ILogReceiver, ILogSource, IDisposable
Inheritance
PositionMessageAdapter
Implements
ICloneable<IMessageChannel>
IPersistable
Inherited Members
Extension Methods

Constructors

PositionMessageAdapter(IMessageAdapter, IPositionManager)

Initializes a new instance of the PositionMessageAdapter.

public PositionMessageAdapter(IMessageAdapter innerAdapter, IPositionManager positionManager)

Parameters

innerAdapter IMessageAdapter

The adapter, to which messages will be directed.

positionManager IPositionManager

The position calculation manager..

Properties

PossibleSupportedMessages

Possible supported by adapter message types.

public override IEnumerable<MessageTypeInfo> PossibleSupportedMessages { get; }

Property Value

IEnumerable<MessageTypeInfo>

SupportedResultMessages

Supported by adapter result message types.

public override IEnumerable<MessageTypes> SupportedResultMessages { get; }

Property Value

IEnumerable<MessageTypes>

Methods

Clone()

Create a copy of PositionMessageAdapter.

public override IMessageChannel Clone()

Returns

IMessageChannel

Copy.

OnInnerAdapterNewOutMessage(Message)

Process InnerAdapter output message.

protected override void OnInnerAdapterNewOutMessage(Message message)

Parameters

message Message

The message.

OnSendInMessage(Message)

Send message.

protected override bool OnSendInMessage(Message message)

Parameters

message Message

Message.

Returns

bool

true if the specified message was processed successfully, otherwise, false.