def application_context_builder(): #tickerRateService = TickerRateService('google') tickerRateService = TickerRateService('yahoo') tickerNameService = TickerInfoService('resources/secwiki_tickers.csv') parameterService = ParameterService(10) tickerAnalysisService = TickerAnalysisService() bullishVsBearishAnalysisService = BullishVsBearishAnalysisService() linearRegressionSerice = LinearRegressionSerice() volatilityAnalysisService = VolatilityAnalysisService() plottingUtilService = PlottingUtilServce() optionSuggestionService = OptionSuggestionService() dataftameColumnInserterService = DataftrameColumnInserterService() optionImpliedVolatilityService = OptionImpliedVolatilityService(optionSuggestionService,dataftameColumnInserterService) optionSuggestionColumnLabelingService = OptionSuggestionColumnLabelingService() priceChangeAnalysisService = PriceChangeAnalysisService(volatilityAnalysisService) priceChangeSimulationService = PriceChangeSimulationService(volatilityAnalysisService,plottingUtilService) rawDataController = RawDataController(parameterService,tickerRateService,tickerAnalysisService, tickerNameService, "raw_data.html") summaryAnalysisController = SummaryAnalysisController(parameterService,tickerRateService,tickerAnalysisService, bullishVsBearishAnalysisService, linearRegressionSerice, priceChangeAnalysisService, "summary_analysis.html") predictionController = PredictionController(parameterService,tickerRateService,tickerAnalysisService,priceChangeSimulationService, "prediction.html") downloadController = DownloadController(parameterService,tickerRateService) optionsController = OptionsController(parameterService,optionSuggestionService,optionImpliedVolatilityService, optionSuggestionColumnLabelingService,"options.html") return rawDataController , summaryAnalysisController , predictionController , downloadController,optionsController
def application_context_builder(): #tickerRateService = TickerRateService('google') rsquareHighlighter = RSquareHighlighter() tickerRateService = TickerRateService('yahoo') tickerNameService = TickerInfoService('resources/secwiki_tickers.csv') parameterService = ParameterService(10) tickerAnalysisService = TickerAnalysisService() bullishVsBearishAnalysisService = BullishVsBearishAnalysisService() linearRegressionSerice = LinearRegressionSerice(rsquareHighlighter) volatilityAnalysisService = VolatilityAnalysisService() plottingUtilService = PlottingUtilServce() optionSuggestionService = OptionSuggestionService() connectionFactory = ConnectionFactory("../db/testflasky/flaskysqlite.db") db_utils = Utils() stockGameDbService = StockGameDbService(connectionFactory,db_utils) visitorDbService = VisitorDbService(connectionFactory,db_utils) industryDbService = IndustryDbService(connectionFactory,db_utils) industryRelationsDbService = IndustryRelationsDbService(connectionFactory,db_utils) industryCrosstableDefaultTemplateService = IndustryCrosstableDefaultTemplateService() industryCrosstableService = IndustryCrosstableService(industryDbService,industryRelationsDbService) dataftameColumnInserterService = DataftrameColumnInserterService() optionImpliedVolatilityService = OptionImpliedVolatilityService(optionSuggestionService,dataftameColumnInserterService) optionSuggestionColumnLabelingService = OptionSuggestionColumnLabelingService() priceChangeAnalysisService = PriceChangeAnalysisService(volatilityAnalysisService) priceChangeSimulationService = PriceChangeSimulationService(volatilityAnalysisService,plottingUtilService) rawDataController = RawDataController(parameterService,tickerRateService,tickerAnalysisService, tickerNameService, "raw_data.html") summaryAnalysisController = SummaryAnalysisController(parameterService,tickerRateService,tickerAnalysisService, bullishVsBearishAnalysisService, linearRegressionSerice, priceChangeAnalysisService, "summary_analysis.html") summaryAnalysisRecommendationController = SummaryAnalysisRecommendationController(parameterService, tickerRateService, tickerAnalysisService, bullishVsBearishAnalysisService, linearRegressionSerice, priceChangeAnalysisService, "recommendation.html") predictionController = PredictionController(parameterService,tickerRateService,tickerAnalysisService,priceChangeSimulationService, "prediction.html") downloadController = DownloadController(parameterService,tickerRateService) optionsController = OptionsController(parameterService,optionSuggestionService,optionImpliedVolatilityService, optionSuggestionColumnLabelingService,"options.html") profitController = ProfitController("profit.html") industryController = IndustryController(industryCrosstableService,visitorDbService,industryCrosstableDefaultTemplateService,"industry.html") stockGameService = StockGameService(parameterService,tickerRateService,tickerAnalysisService,priceChangeSimulationService,linearRegressionSerice,rsquareHighlighter) stockGameController = StockGameController(stockGameService,stockGameDbService,visitorDbService,"stock_game.html") return rawDataController , summaryAnalysisController , summaryAnalysisRecommendationController,\ predictionController , downloadController,optionsController, profitController , industryController, stockGameController