ICommissionManager

StockSharp.Algo.Commissions

The commission calculating manager interface.

Implements: IPersistable, ICloneable<ICommissionManager>, ICloneable

Properties

Commission
public decimal Commission { get; }
value = iCommissionManager.Commission

Total commission.

Rules
public ISynchronizedCollection<ICommissionRule> Rules { get; }
value = iCommissionManager.Rules

The list of commission calculating rules.

Methods

Process
public decimal? Process(Message message)
result = iCommissionManager.Process(message)

To calculate commission.

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

Returns: The commission. If the commission cannot be calculated then will be returned.

Reset
public void Reset()
iCommissionManager.Reset()

To reset the state.