internal void Combine(BosSessionStats source)
		{
			if (OpeningPrice.HasValue) return;
			OpeningPrice = source.OpeningPrice;
			OpeningTurnover = source.OpeningTurnover;
			ClosingPrice = source.ClosingPrice;
			ClosingTurnover = source.ClosingTurnover;
			TotalVolume = source.TotalVolume;
			TotalTurnover = source.TotalTurnover;
			HighestPrice = source.HighestPrice;
			LowestPrice = source.LowestPrice;
			ReferencePrice = source.ReferencePrice;
		}
		// konstruktor wywoływany z klasy BosInstruments
		internal BosInstrument(string isin, string symbol)
		{
			// TODO: "Persistent cache" dla pól: ISIN/Symbol/Sym/Type
			// żebyśmy mogli np. od razu uzupełnić Symbol, gdy podano tylko ISIN
			ISIN = isin;
			Symbol = symbol;
			Sym = GetInstrumentSym();
			Type = GetInstrumentType();
			BuyOffers = new BosOffers();
			SellOffers = new BosOffers();
			Trades = new BosTrades();
			Session = new BosSessionStats();
			updatesEnabled = true;
		}
 // konstruktor wywoływany z klasy BosInstruments
 internal BosInstrument(string isin, string symbol)
 {
     // TODO: "Persistent cache" dla pól: ISIN/Symbol/Sym/Type
     // żebyśmy mogli np. od razu uzupełnić Symbol, gdy podano tylko ISIN
     ISIN           = isin;
     Symbol         = symbol;
     Sym            = GetInstrumentSym();
     Type           = GetInstrumentType();
     BuyOffers      = new BosOffers();
     SellOffers     = new BosOffers();
     Trades         = new BosTrades();
     Session        = new BosSessionStats();
     updatesEnabled = true;
 }
Example #4
0
 internal void Combine(BosSessionStats source)
 {
     if (OpeningPrice.HasValue)
     {
         return;
     }
     OpeningPrice    = source.OpeningPrice;
     OpeningTurnover = source.OpeningTurnover;
     ClosingPrice    = source.ClosingPrice;
     ClosingTurnover = source.ClosingTurnover;
     TotalVolume     = source.TotalVolume;
     TotalTurnover   = source.TotalTurnover;
     HighestPrice    = source.HighestPrice;
     LowestPrice     = source.LowestPrice;
     ReferencePrice  = source.ReferencePrice;
 }