Class CommissionManager
- Namespace
- StockSharp.Algo.Commissions
- Assembly
- StockSharp.Algo.dll
The commission calculating manager.
public class CommissionManager : ICommissionManager, IPersistable
- Inheritance
-
CommissionManager
- Implements
-
IPersistable
- Inherited Members
- Extension Methods
Constructors
CommissionManager()
Initializes a new instance of the CommissionManager.
public CommissionManager()
Properties
Commission
Total commission.
public virtual decimal Commission { get; }
Property Value
Rules
The list of commission calculating rules.
public ISynchronizedCollection<ICommissionRule> Rules { get; }
Property Value
- ISynchronizedCollection<ICommissionRule>
Methods
Load(SettingsStorage)
Load settings.
public void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageStorage.
Process(Message)
To calculate commission.
public virtual decimal? Process(Message message)
Parameters
message
MessageThe message containing the information about the order or own trade.
Returns
Reset()
To reset the state.
public virtual void Reset()
Save(SettingsStorage)
Save settings.
public void Save(SettingsStorage storage)
Parameters
storage
SettingsStorageStorage.