コード例 #1
0
 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;
 }
コード例 #2
0
 protected AddTransactionCommandBase(Account account, CutTransactionParams cutTransactionParams, AddTransactionCommandVisitorBase visitor)
     : this(account, false, visitor)
 {
     this.CutTransactionParams = cutTransactionParams;
 }
コード例 #3
0
 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;
 }
コード例 #4
0
 protected AddTransactionCommandBase(Account account, Order openOrder, AddTransactionCommandVisitorBase visitor)
     : this(account, false, visitor)
 {
     this.OpenOrder = openOrder;
 }
コード例 #5
0
 protected AddTransactionCommandBase(Account account, DataRow dataRowTran, AddTransactionCommandVisitorBase visitor)
     : this(account, false, visitor)
 {
     this.DataRowTran = dataRowTran;
 }
コード例 #6
0
 protected AddTransactionCommandBase(Account account, Protocal.TransactionData tran, AddTransactionCommandVisitorBase visitor)
     : this(account, tran.PlaceByRiskMonitor, visitor)
 {
     this.TransactionData = tran;
 }
コード例 #7
0
 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;
 }
コード例 #8
0
 internal abstract void Accept(AddTransactionCommandVisitorBase visitor);
コード例 #9
0
 protected AddTransactionCommandBase(Account account, bool placeByRiskMonitor, AddTransactionCommandVisitorBase visitor)
 {
     this.Account            = account;
     this.PlaceByRiskMonitor = placeByRiskMonitor;
     _visitor = visitor;
 }