CommissionTradeVolumeRule
StockSharp.Algo.Commissions
Trade volume commission.
Inherits: CommissionRule
Methods
OnProcessAsync
protected override ValueTask<decimal?> OnProcessAsync(ExecutionMessage message, CancellationToken cancellationToken)
result = commissionTradeVolumeRule.OnProcessAsync(message, cancellationToken)
To calculate commission, before Min is applied.
- 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.