private void addQuotes(YahooFinance api, Stocks market) { Console.WriteLine("Which QUOTE(s) would you like to ADD?\n" + market.showCommonQuotes()); string addQuotes = Console.ReadLine().ToUpper().Replace(" ", "").Replace(",", ""); api.YahooUrl = api.YahooUrl + addQuotes; market.StockQuotes = market.StockQuotes + addQuotes; }
public string buildURL(Stocks market, YahooFinance api) { baseUrl = api.YahooUrl; Console.Write("\nWhich STOCKS would you like to view?\nSeparate your stock symbols with commas." + market.showCommonStocks()); stocks = Console.ReadLine().ToUpper().Replace(" ", ""); setStockList(stocks); Console.WriteLine("Add the stock info you would like to see.\n" + market.showCommonQuotes()); stockCharacters = Console.ReadLine().ToUpper().Replace(" ", "").Replace(",", ""); market.StockQuotes = "NS" + stockCharacters; fullUrl = baseUrl + stocks + "&f=NS" + stockCharacters; return(fullUrl); }