Table of Contents

Class CommissionSecurityIdRule

Namespace
StockSharp.Algo.Commissions
Assembly
StockSharp.Algo.dll

Security commission.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Security", Description = "SecurityCommission", GroupName = "Securities")]
public class CommissionSecurityIdRule : CommissionRule, ICommissionRule, IPersistable
Inheritance
CommissionSecurityIdRule
Implements
IPersistable
Inherited Members
Extension Methods

Constructors

CommissionSecurityIdRule()

public CommissionSecurityIdRule()

Properties

Security

Security ID.

[Display(ResourceType = typeof(LocalizedStrings), Name = "SecurityId", Description = "SecurityId", GroupName = "General")]
public Security Security { get; set; }

Property Value

Security

Methods

GetTitle()

Get title.

protected override string GetTitle()

Returns

string

Load(SettingsStorage)

Load settings.

public override void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

Process(ExecutionMessage)

To calculate commission.

public override decimal? Process(ExecutionMessage message)

Parameters

message ExecutionMessage

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

Returns

decimal?

The commission. If the commission cannot be calculated then null will be returned.

Save(SettingsStorage)

Save settings.

public override void Save(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.