public void UpdateUsdLocalRate() { if (MarketTickers.Quote.Code == "USD") { string pairCode = MarketTickers.Quote.Code + LocalCurrencyCode; yahooUsdLocalRate = new ExchangeRate(CurrencyPair.All[pairCode], Rate); YahooApi.Update(yahooUsdLocalRate); } }
public static Dictionary <string, Fields> GetLatestStockActivity(IEnumerable <string> concatenatedTickers) { Dictionary <string, Fields> latestStockQuotes = new Dictionary <string, Fields>(); foreach (string concatenatedTicker in concatenatedTickers) { var dictionary = YahooApi.yahooGetQuotes(concatenatedTicker); foreach (KeyValuePair <string, Fields> quote in dictionary) { latestStockQuotes[quote.Key] = quote.Value; } } return(latestStockQuotes); }