async def inner_loop(_keys: List[str]): for key in _keys: current_strategy: str = in_memory_config_map.get( "strategy").value strategy_cm: Dict[str, ConfigVar] = get_strategy_config_map( current_strategy) if key in in_memory_config_map: cv: ConfigVar = in_memory_config_map.get(key) elif key in global_config_map: cv: ConfigVar = global_config_map.get(key) else: cv: ConfigVar = strategy_cm.get(key) if key == "wallet": wallets = list_wallets() if len(wallets) > 0: value = await self._unlock_wallet() else: value = await self._create_or_import_wallet() logging.getLogger("hummingbot.public_eth_address").info( value) elif key == "strategy_file_path": value = await self._import_or_create_strategy_config() else: value = await single_prompt(cv) cv.value = parse_cvar_value(cv, value) if not self.config_complete: await inner_loop(self._get_empty_configs())
async def inner_loop(_keys: List[str]): for key in _keys: current_strategy: str = in_memory_config_map.get("strategy").value strategy_cm: Dict[str, ConfigVar] = get_strategy_config_map(current_strategy) if key in in_memory_config_map: cv: ConfigVar = in_memory_config_map.get(key) elif key in global_config_map: cv: ConfigVar = global_config_map.get(key) else: cv: ConfigVar = strategy_cm.get(key) value = await single_prompt(cv) cv.value = parse_cvar_value(cv, value) if not self.config_complete: await inner_loop(self._get_empty_configs())