Table of Contents

Class CommissionSecurityTypeRule

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

Security type commission.

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

Constructors

CommissionSecurityTypeRule()

Initializes a new instance of the CommissionSecurityTypeRule.

public CommissionSecurityTypeRule()

Properties

SecurityType

Security type.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Type", Description = "SecurityTypeDesc", GroupName = "General")]
public SecurityTypes SecurityType { get; set; }

Property Value

SecurityTypes

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.