def print_txt_output(self): CompanyDailyQuotes.print_section1_headers() for company in self.companies: self.stockQuotes[company].print_section1_info() CompanyDailyQuotes.print_section2_headers() for company in self.companies: self.stockQuotes[company].print_section2_info() CompanyDailyQuotes.print_section3_headers() for company in self.companies: self.stockQuotes[company].print_section3_info() CompanyDailyQuotes.print_section5_headers() for company in self.companies: self.stockQuotes[company].print_section5_info()
def print_csv_output(self, delimiter=','): CompanyDailyQuotes.print_headers(delimiter) for company in self.companies: self.stockQuotes[company].print_info()
def get_stock_quotes(self): for company in self.companies: self.stockQuotes[company] = CompanyDailyQuotes(company)