Ejemplo n.º 1
0
        public static ForexTrade Initialize(ForexTrade origFt)
        {
            ForexTrade newFt = ForexTradeLogic.CloneForexTrade(origFt);

            Initialize(origFt, newFt);
            return(newFt);
        }
Ejemplo n.º 2
0
        public static ForexTrade Initialize(ForexTrade origFt, ForexTrade newFt)
        {
            newFt.EventType    = ForexEventType.Predeliver;
            newFt.CreationDate = (DateTime)newFt.Session.ExecuteScalar("SELECT GETDATE()");
            newFt.TradeDate    = newFt.CreationDate;

            ForexTrade revFt = ForexTradeLogic.CloneForexTrade(origFt);

            revFt.Rate         = origFt.Rate;
            revFt.CreationDate = newFt.CreationDate;
            revFt.TradeDate    = revFt.CreationDate;

            newFt.ReverseTrade = revFt;
            InitializeReverseForexTrade(newFt);

            return(newFt);
        }