RiskCommissionRule

StockSharp.Algo.Risk

风险规则,追踪佣金规模。

继承自: RiskRule

属性

Commission
public decimal Commission { get; set; }
value = riskCommissionRule.Commission
riskCommissionRule.Commission = value

佣金规模。

方法

GetTitle
protected override string GetTitle()
result = riskCommissionRule.GetTitle()

获得标题。

LoadAsync
public override Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = riskCommissionRule.LoadAsync(storage, cancellationToken)

Asynchronously loads the state of the object from the specified SettingsStorage.

storage
The SettingsStorage instance from which to load the data.
cancellationToken
A token to monitor for cancellation requests.

返回值: A task that represents the asynchronous load operation.

ProcessMessage
public override bool ProcessMessage(Message message)
result = riskCommissionRule.ProcessMessage(message)

要处理用于交易延迟计算的信件。 接受OrderRegisterMessage、 OrderReplaceMessage、 OrderCancelMessage 和 ExecutionMessage 类型的信件 。

message
传言.

返回值: 交易延迟。 如果无法计算延迟, 将会返回 。

SaveAsync
public override Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = riskCommissionRule.SaveAsync(storage, cancellationToken)

Asynchronously saves the state of the object to the specified SettingsStorage.

storage
The SettingsStorage instance to which to save the data.
cancellationToken
A token to monitor for cancellation requests.

返回值: A task that represents the asynchronous save operation.