Beispiel #1
0
 protected AddAutoCloseTransactionCommandBase(Account account, IAddTranCommandService addTranCommandService, Order openOrder, Price closePrice, OrderType orderType)
     : base(account, Visitors.AddAutoCloseTransactionCommandVisitor.Default, addTranCommandService)
 {
     this.OpenOrder  = openOrder;
     this.ClosePrice = closePrice;
     this.OrderType  = orderType;
 }
Beispiel #2
0
 protected AddMultipleCloseTranCommandBase(Account account, IAddTranCommandService commandService, Guid instrumentId, decimal contractSize, Guid submitorId)
     : base(account, Visitors.AddMultipleCloseTranCommandVisitor.Default, commandService)
 {
     this.InstrumentId = instrumentId;
     this.ContractSize = contractSize;
     this.SubmitorId   = submitorId;
 }
Beispiel #3
0
 protected AddCutTransactionCommandBase(Account account, IAddTranCommandService addTranCommandService, Instrument instrument, decimal lotBalanceSum, Price setPrice, bool isBuy)
     : base(account, Visitors.AddCutTransactionCommandVisitor.Default, addTranCommandService)
 {
     this.Instrument    = instrument;
     this.LotBalanceSum = lotBalanceSum;
     this.SetPrice      = setPrice;
     this.IsBuy         = isBuy;
 }
Beispiel #4
0
 protected AddDoneTransactionCommandBase(Account account, IAddTranCommandService addTranCommandService, Transaction ifTran, Guid sourceOrderId, Price limitPrice, Price stopPrice)
     : base(account, Visitors.AddDoneTransactionCommandVisitor.Default, addTranCommandService)
 {
     this.IfTran        = ifTran;
     this.SourceOrderId = sourceOrderId;
     this.LimitPrice    = limitPrice;
     this.StopPrice     = stopPrice;
 }
Beispiel #5
0
 protected AddDataRowTransactionCommandBase(Account account, IAddTranCommandService addTranCommandService, IDBRow dr, Framework.OperationType operationType)
     : base(account, Visitors.AddDataRowFormatTransactionCommandVisitor.Default, addTranCommandService)
 {
     this.DataRow       = dr;
     this.OperationType = operationType;
 }
Beispiel #6
0
 protected AddTranCommandBase(Account account, Visitors.AddTransactionCommandVisitorBase visitor, IAddTranCommandService addTranCommandService)
 {
     this.Account           = account;
     _visitor               = visitor;
     _addTranCommandService = addTranCommandService;
 }
Beispiel #7
0
 protected AddCloseTransactionCommandBase(Account account, IAddTranCommandService addTranCommandService, Order openOrder)
     : base(account, Visitors.AddCloseTransactionCommandVisitor.Default, addTranCommandService)
 {
     this.OpenOrder = openOrder;
 }
Beispiel #8
0
 protected AddCommunicationTransactionCommandBase(Account account, IAddTranCommandService addTranCommandService, Protocal.TransactionData tranData)
     : base(account, Visitors.AddCommunicationTransactionCommandVisitor.Default, addTranCommandService)
 {
     this.TranData = tranData;
 }
Beispiel #9
0
 protected AddBookTransactionCommandBase(Account account, IAddTranCommandService commandService, Visitors.AddTransactionCommandVisitorBase visitor, Protocal.TransactionBookData tranData)
     : base(account, visitor, commandService)
 {
     this.TranData = tranData;
 }
 protected AddLmtQuantiryOnMaxLotChangeTransactionCommandBase(Account account, IAddTranCommandService addTranCommandService, Order originOrder, decimal lot)
     : base(account, Visitors.AddLmtQuantiryOnMaxLotChangeTransactionCommandVisitor.Default, addTranCommandService)
 {
     this.OriginOrder = originOrder;
     this.Lot         = lot;
 }