コード例 #1
0
        public EZFill(DateTime fillTime, EZInstrument instrument, zBuySell buySell, ezQuantity quantity, ezPrice price, zFillType fillType)
        {
            TimeZoneInfo cst       = TimeZoneInfo.FindSystemTimeZoneById("Central Standard Time");
            DateTime     localTime = TimeZoneInfo.ConvertTimeFromUtc(fillTime, cst);

            DateTime time         = localTime;
            string   timeStr      = time.ToString("H:mm:ss.fff");
            string   shortTimeStr = time.ToString("hh:mm:ss tt");

            Time           = timeStr;
            ShortTime      = shortTimeStr;
            Identifiers    = ""; // GetFillIdenifiers(fill);
            Instrument     = instrument;
            BuySell        = buySell;
            InstrumentName = ""; // ParseInstrumentKey(fill.InstrumentKey.ToString());
            Quantity       = quantity;
            Price          = price;
            FFT2           = ""; // fill.FFT2;
            FFT3           = ""; // fill.FFT3;
            FillType       = fillType;
            //_fill = fill;
            Originator         = FillOriginator.TRADER;
            Action             = FillAction.ADD;
            ReplacementForFill = null;
        }