ICommissionRule

StockSharp.Algo.Commissions

The commission calculating rule interface.

Implements: IPersistable

Properties

Title
public string Title { get; }
value = iCommissionRule.Title

Title.

Value
public Unit Value { get; }
value = iCommissionRule.Value

Commission value.

Methods

Process
public decimal? Process(ExecutionMessage message)
result = iCommissionRule.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()
iCommissionRule.Reset()

To reset the state.