Class CommissionMessageAdapter
- Namespace
- StockSharp.Algo.Commissions
- Assembly
- StockSharp.Algo.dll
The message adapter, automatically calculating commission.
public class CommissionMessageAdapter : MessageAdapterWrapper, IMessageAdapterWrapper, IMessageAdapter, IMessageChannel, ICloneable<IMessageChannel>, ICloneable, IPersistable, ILogReceiver, ILogSource, IDisposable
- Inheritance
-
CommissionMessageAdapter
- Implements
-
ICloneable<IMessageChannel>IPersistable
- Inherited Members
- Extension Methods
Constructors
CommissionMessageAdapter(IMessageAdapter)
Initializes a new instance of the CommissionMessageAdapter.
public CommissionMessageAdapter(IMessageAdapter innerAdapter)
Parameters
innerAdapter
IMessageAdapterThe adapter, to which messages will be directed.
Properties
CommissionManager
The commission calculating manager.
public ICommissionManager CommissionManager { get; set; }
Property Value
Methods
Clone()
Create a copy of CommissionMessageAdapter.
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.