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
Methods
GetTitle()
Get title.
protected override string GetTitle()
Returns
Load(SettingsStorage)
Load settings.
public override void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
Process(ExecutionMessage)
To calculate commission.
public override decimal? Process(ExecutionMessage message)
Parameters
message
ExecutionMessageThe message containing the information about the order or own trade.
Returns
Save(SettingsStorage)
Save settings.
public override void Save(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.