CommissionSecurityTypeRule
StockSharp.Algo.Commissions
Security type commission.
Inherits: CommissionRule
Constructors
CommissionSecurityTypeRule
public CommissionSecurityTypeRule()
commissionSecurityTypeRule = CommissionSecurityTypeRule()
Initializes a new instance of the CommissionSecurityTypeRule.
Properties
SecurityType
public SecurityTypes SecurityType { get; set; }
value = commissionSecurityTypeRule.SecurityType
commissionSecurityTypeRule.SecurityType = value
Security type.
Methods
GetTitle
protected override string GetTitle()
result = commissionSecurityTypeRule.GetTitle()
Get title.
Load
public override void Load(SettingsStorage storage)
commissionSecurityTypeRule.Load(storage)
Load settings.
- storage
- Settings storage.
Process
public override decimal? Process(ExecutionMessage message)
result = commissionSecurityTypeRule.Process(message)
To calculate commission.
- message
- The message containing the information about the order or own trade.
Returns: The commission. If the commission cannot be calculated then will be returned.
Save
public override void Save(SettingsStorage storage)
commissionSecurityTypeRule.Save(storage)
Save settings.
- storage
- Settings storage.