Class CommissionRule
- Namespace
- StockSharp.Algo.Commissions
- Assembly
- StockSharp.Algo.dll
The commission calculating rule.
[DataContract]
public abstract class CommissionRule : NotifiableObject, ICommissionRule, IPersistable
- Inheritance
-
CommissionRule
- Implements
-
IPersistable
- Derived
- Extension Methods
Constructors
CommissionRule()
Initialize CommissionRule.
protected CommissionRule()
Properties
Title
Title.
[Browsable(false)]
public string Title { get; }
Property Value
Value
Commission value.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Commission", Description = "CommissionValue", GroupName = "General")]
public Unit Value { get; set; }
Property Value
Methods
GetTitle()
Get title.
protected virtual string GetTitle()
Returns
GetValue(decimal?)
Get result value.
protected decimal? GetValue(decimal? baseValue)
Parameters
baseValue
decimal?Base value.
Returns
- decimal?
Result value.
Load(SettingsStorage)
Load settings.
public virtual void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
Process(ExecutionMessage)
To calculate commission.
public abstract decimal? Process(ExecutionMessage message)
Parameters
message
ExecutionMessageThe message containing the information about the order or own trade.
Returns
Reset()
To reset the state.
public virtual void Reset()
Save(SettingsStorage)
Save settings.
public virtual void Save(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
UpdateTitle()
Update title.
protected void UpdateTitle()