ICommissionRule
StockSharp.Algo.Commissions
The commission calculating rule interface.
Implements: IAsyncPersistable
Properties
Min
public decimal Min { get; }
value = iCommissionRule.Min
Lower bound on a charge this rule produces. Zero means no bound.
Methods
ProcessAsync
public ValueTask<decimal?> ProcessAsync(ExecutionMessage message, CancellationToken cancellationToken)
result = iCommissionRule.ProcessAsync(message, cancellationToken)
To calculate commission.
- message
- The message containing the information about the order or own trade.
- cancellationToken
- CancellationToken
Returns: The commission. If the commission cannot be calculated then will be returned.