CommissionTradePriceRule
StockSharp.Algo.Commissions
贸易价格委员会。
继承自: CommissionRule
方法
OnProcessAsync
protected override ValueTask<decimal?> OnProcessAsync(ExecutionMessage message, CancellationToken cancellationToken)
result = commissionTradePriceRule.OnProcessAsync(message, cancellationToken)
To calculate commission, before Min is applied.
- message
- The message containing the information about the order or own trade.
- cancellationToken
- CancellationToken
返回值: The commission. If the commission cannot be calculated then will be returned.