CommissionTradeRule

StockSharp.Algo.Commissions

Comisario de comercio.

Hereda de: CommissionRule

Métodos

OnProcessAsync
protected override ValueTask<decimal?> OnProcessAsync(ExecutionMessage message, CancellationToken cancellationToken)
result = commissionTradeRule.OnProcessAsync(message, cancellationToken)

To calculate commission, before Min is applied.

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

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