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
IMessageAdapterThe adapter, to which messages will be directed.
positionManager
IPositionManagerThe position calculation manager..
Properties
PossibleSupportedMessages
Possible supported by adapter message types.
public override IEnumerable<MessageTypeInfo> PossibleSupportedMessages { get; }
Property Value
SupportedResultMessages
Supported by adapter result message types.
public override IEnumerable<MessageTypes> SupportedResultMessages { get; }
Property Value
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
MessageThe message.
OnSendInMessage(Message)
Send message.
protected override bool OnSendInMessage(Message message)
Parameters
message
MessageMessage.