mirror of
https://github.com/StockSharp/StockSharp.git
synced 2026-12-06 01:22:11 +00:00
40 lines
966 B
C#
40 lines
966 B
C#
namespace StockSharp.Algo.Testing;
|
|
|
|
using StockSharp.Algo.Commissions;
|
|
|
|
/// <summary>
|
|
/// The message, containing information on the commission calculation rule.
|
|
/// </summary>
|
|
public class CommissionRuleMessage : Message
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="CommissionRuleMessage"/>.
|
|
/// </summary>
|
|
public CommissionRuleMessage()
|
|
: base(ExtendedMessageTypes.CommissionRule)
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// The commission calculating rule.
|
|
/// </summary>
|
|
public ICommissionRule Rule { get; set; }
|
|
|
|
/// <summary>
|
|
/// The portfolio name. If it is given, then <see cref="Rule"/> is applied to specific portfolio.
|
|
/// </summary>
|
|
public string PortfolioName { get; set; }
|
|
|
|
/// <summary>
|
|
/// Create a copy of <see cref="CommissionRuleMessage"/>.
|
|
/// </summary>
|
|
/// <returns>Copy.</returns>
|
|
public override Message Clone()
|
|
{
|
|
return new CommissionRuleMessage
|
|
{
|
|
Rule = Rule?.Clone(),
|
|
PortfolioName = PortfolioName,
|
|
};
|
|
}
|
|
} |