예제 #1
0
        //
        //

        //
        //
        // *****************************************
        // ****         RequestNewTrade         ****
        // *****************************************
        public static SyntheticOrder RequestNewOrder(int tradeId)
        {
            SyntheticOrder e = new SyntheticOrder();

            e.OrderId = tradeId;
            return(e);
        }//end Request AllControls
예제 #2
0
        // *****************************************************************
        // ****                     Public Methods                      ****
        // *****************************************************************
        //
        //
        public SyntheticOrder Copy()
        {
            SyntheticOrder newSynthOrder = new SyntheticOrder();

            this.CopyTo(newSynthOrder);
            return(newSynthOrder);
        }
예제 #3
0
 //
 //
 //
 protected void CopyTo(SyntheticOrder newSyntheticOrder)
 {
     newSyntheticOrder.OrderId     = this.OrderId;
     newSyntheticOrder.Side        = this.Side;
     newSyntheticOrder.Price       = this.Price;
     newSyntheticOrder.Qty         = this.Qty;
     newSyntheticOrder.TradeReason = this.TradeReason;
     foreach (SyntheticFill synthFill in this.m_SyntheticFills)
     {
         newSyntheticOrder.m_SyntheticFills.Add(synthFill);
     }
 }// CopyTo()