async def create_backtesting_exchange_producers(self): for importer in self.exchange_importers: available_data_types = get_available_data_types(importer) at_least_one_updater = False for channel_type, updater in UNAUTHENTICATED_UPDATER_SIMULATOR_PRODUCERS.items(): if self._are_required_data_available(channel_type, available_data_types): await updater(get_trading_chan(updater.CHANNEL_NAME, self.exchange_manager.id), importer).run() at_least_one_updater = True if not at_least_one_updater: self.logger.error(f"No updater created for {importer.symbols} backtesting")
async def create_backtesting_exchange_producers(self): for importer in self.exchange_importers: for updater in UNAUTHENTICATED_UPDATER_SIMULATOR_PRODUCERS: await updater( get_trading_chan(updater.CHANNEL_NAME, self.name), importer).run()