Table of Contents

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

decimal

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 SettingsStorage

Storage.

Process(Message)

To calculate commission.

public virtual decimal? Process(Message message)

Parameters

message Message

The message containing the information about the order or own trade.

Returns

decimal?

The commission. If the commission cannot be calculated then null will be returned.

Reset()

To reset the state.

public virtual void Reset()

Save(SettingsStorage)

Save settings.

public void Save(SettingsStorage storage)

Parameters

storage SettingsStorage

Storage.