コード例 #1
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;
		}
コード例 #2
0
		// 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;
		}
コード例 #3
0
 // 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;
 }
コード例 #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;
 }