protected AddTransactionCommandBase(Account account, Transaction ifTran, Guid sourceOrderId, Price limitPrice, Price stopPrice, AddTransactionCommandVisitorBase visitor) : this(account, false, visitor) { this.IfTran = ifTran; this.SourceOrderId = sourceOrderId; this.LimitPrice = limitPrice; this.StopPrice = stopPrice; }
protected AddTransactionCommandBase(Account account, CutTransactionParams cutTransactionParams, AddTransactionCommandVisitorBase visitor) : this(account, false, visitor) { this.CutTransactionParams = cutTransactionParams; }
protected AddTransactionCommandBase(Account account, Order openOrder, Price closePrice, OrderType orderType, AddTransactionCommandVisitorBase visitor) : this(account, false, visitor) { this.OpenOrder = openOrder; this.ClosePrice = closePrice; this.OrderType = orderType; }
protected AddTransactionCommandBase(Account account, Order openOrder, AddTransactionCommandVisitorBase visitor) : this(account, false, visitor) { this.OpenOrder = openOrder; }
protected AddTransactionCommandBase(Account account, DataRow dataRowTran, AddTransactionCommandVisitorBase visitor) : this(account, false, visitor) { this.DataRowTran = dataRowTran; }
protected AddTransactionCommandBase(Account account, Protocal.TransactionData tran, AddTransactionCommandVisitorBase visitor) : this(account, tran.PlaceByRiskMonitor, visitor) { this.TransactionData = tran; }
protected AddTransactionCommandBase(Account account, XElement xmlTran, bool placeByRiskMonitor, AddTransactionCommandVisitorBase visitor) : this(account, placeByRiskMonitor, visitor) { if (!xmlTran.HasElements) { throw new TransactionServerException(TransactionError.HasNoOrders); } this.XmlTran = xmlTran; }
internal abstract void Accept(AddTransactionCommandVisitorBase visitor);
protected AddTransactionCommandBase(Account account, bool placeByRiskMonitor, AddTransactionCommandVisitorBase visitor) { this.Account = account; this.PlaceByRiskMonitor = placeByRiskMonitor; _visitor = visitor; }