예제 #1
0
 /// <summary>
 /// Updates prices using an aggregator
 /// </summary>
 /// <param name="quotes">A dictionary of prices from various feeds.</param>
 internal static void UpdatePrice(Dictionary <String, Quote[]> quotes)
 {
     // Update the prices of each of the feeds found in the aggregator.
     PriceService.UpdateCanadaTickerPrice(quotes["CA TICKER"]);
     PriceService.UpdateUnitedKingdomTickerPrice(quotes["UK TICKER"]);
     PriceService.UpdateUnitedStatesTickerPrice(quotes["US TICKER"]);
 }
예제 #2
0
 /// <summary>
 /// Updates prices using a United States ticker.
 /// </summary>
 /// <param name="quotes">A collection of price quotes.</param>
 internal static void UpdateUnitedStatesTickerPrice(Quote[] quotes)
 {
     // Update the price table with United States ticker symbols.
     DataModel.IEntityIndex symbolIndex   = DataModel.Entity.EntityKeyExternalId3;
     DataModel.IEntityIndex currencyIndex = DataModel.Entity.EntityKeyExternalId0;
     foreach (Quote quote in quotes)
     {
         PriceService.UpdatePriceBySymbolCurrency(symbolIndex, new Object[] { quote.Symbol }, currencyIndex, new Object[] { "USD" }, quote);
     }
 }
예제 #3
0
 public void UpdateUnitedStatesTickerPrice(Quote[] quotes)
 {
     // Update the price using the US ticker.
     PriceService.UpdateUnitedStatesTickerPrice(quotes);
 }
예제 #4
0
 public void UpdatePrice(Dictionary <String, Quote[]> quotes)
 {
     // Update the price using the US ticker.
     PriceService.UpdatePrice(quotes);
 }
예제 #5
0
 public void UpdateCurrencyPrice(Quote[] quotes)
 {
     // Update the price using the US ticker.
     PriceService.UpdateCurrencyPrice(quotes);
 }
예제 #6
0
 public void UpdateCanadaTickerPrice(Quote[] quotes)
 {
     // Update the price using the US ticker.
     PriceService.UpdateCanadaTickerPrice(quotes);
 }