Esempio n. 1
0
 public StopLossOrderTransaction()
 {
     this.Id                      = new TransactionID();
     this.Time                    = new DateTime();
     this.AccountID               = new AccountID();
     this.BatchID                 = new TransactionID();
     this.RequestID               = new RequestID();
     this.Type                    = new TransactionType(ETransactionType.STOP_LOSS_ORDER);
     this.TradeID                 = new TradeID();
     this.ClientTradeID           = new ClientID();
     this.Price                   = new PriceValue();
     this.TimeInForce             = new TimeInForce(ETimeInForce.GTC);
     this.GTDTime                 = new DateTime();
     this.TriggerCondition        = new OrderTriggerCondition(EOrderTriggerCondition.DEFAULT);
     this.Reason                  = new StopLossOrderReason();
     this.ClientExtensions        = new ClientExtensions();
     this.OrderFillTransactionID  = new TransactionID();
     this.ReplacesOrderID         = new OrderID();
     this.CancellingTransactionID = new TransactionID();
 }
Esempio n. 2
0
 public StopLossOrderRejectTransaction()
 {
     this.Id                      = new TransactionID();
     this.Time                    = new DateTime();
     this.AccountID               = new AccountID();
     this.BatchID                 = new TransactionID();
     this.RequestID               = new RequestID();
     this.Type                    = new TransactionType(ETransactionType.STOP_LOSS_ORDER_REJECT);
     this.TradeID                 = new TradeID();
     this.ClientTradeID           = new ClientID();
     this.Price                   = new PriceValue();
     this.TimeInForce             = new TimeInForce(ETimeInForce.GTC);
     this.GTDTime                 = new DateTime();
     this.TriggerCondition        = new OrderTriggerCondition();
     this.Reason                  = new StopLossOrderReason();
     this.ClientExtensions        = new ClientExtensions();
     this.OrderFillTransactionID  = new TransactionID();
     this.IntendedRepalcesOrderID = new OrderID();
     this.RejectReason            = new TransactionRejectReason();
 }
Esempio n. 3
0
 public StopLossOrderRejectTransaction(TransactionID id, DateTime time, int userID, AccountID accountID, TransactionID batchID, RequestID requestID, TransactionType type, TradeID tradeID, ClientID clientTradeID, PriceValue price, double distance, TimeInForce timeInForce, DateTime gTDTime, OrderTriggerCondition triggerCondition, bool guaranteed, StopLossOrderReason reason, ClientExtensions clientExtensions, TransactionID orderFillTransactionID, OrderID intendedRepalcesOrderID, TransactionRejectReason rejectReason)
 {
     this.Id                      = id;
     this.Time                    = time;
     this.UserID                  = userID;
     this.AccountID               = accountID;
     this.BatchID                 = batchID;
     this.RequestID               = requestID;
     this.Type                    = type;
     this.TradeID                 = tradeID;
     this.ClientTradeID           = clientTradeID;
     this.Price                   = price;
     this.Distance                = distance;
     this.TimeInForce             = timeInForce;
     this.GTDTime                 = gTDTime;
     this.TriggerCondition        = triggerCondition;
     this.Guaranteed              = guaranteed;
     this.Reason                  = reason;
     this.ClientExtensions        = clientExtensions;
     this.OrderFillTransactionID  = orderFillTransactionID;
     this.IntendedRepalcesOrderID = intendedRepalcesOrderID;
     this.RejectReason            = rejectReason;
 }