ICommissionRule

StockSharp.Algo.Commissions

ルールインターフェイスを計算するコミッション。

実装: IAsyncPersistable

プロパティ

Min
public decimal Min { get; }
value = iCommissionRule.Min

Lower bound on a charge this rule produces. Zero means no bound.

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

タイトル。

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

委員会の価値。

メソッド

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

戻り値: The commission. If the commission cannot be calculated then will be returned.

Reset
public void Reset()
iCommissionRule.Reset()

状態をリセットする。