Esempio n. 1
0
        public AlertOverridedQuotation(OverridedQ overridedQ, AlertInstrument instrument)
        {
            this.instrument    = instrument;
            this.quotePolicyID = overridedQ.QuotePolicyID;
            this.timestamp     = overridedQ.Timestamp;

            this.ask  = instrument.CreatePriceFromString(overridedQ.Ask);
            this.bid  = instrument.CreatePriceFromString(overridedQ.Bid);
            this.high = instrument.CreatePriceFromString(overridedQ.High);
            this.low  = instrument.CreatePriceFromString(overridedQ.Low);
        }
Esempio n. 2
0
        public AlertOverridedQuotation(DataRow overridedQuotationRow, AlertInstrument instrument)
        {
            this.instrument    = instrument;
            this.quotePolicyID = (Guid)overridedQuotationRow["QuotePolicyID"];
            this.timestamp     = (DateTime)overridedQuotationRow["Timestamp"];

            this.ask  = instrument.CreatePriceFromDataRowItem(overridedQuotationRow["Ask"]);
            this.bid  = instrument.CreatePriceFromDataRowItem(overridedQuotationRow["Bid"]);
            this.high = instrument.CreatePriceFromDataRowItem(overridedQuotationRow["High"]);
            this.low  = instrument.CreatePriceFromDataRowItem(overridedQuotationRow["Low"]);
        }