def get_best_coin_name(investable_coins_map={}, prev_coins_map={}):
    while True:
        if dict(investable_coins_map):
            print(f'original_map ::: {investable_coins_map}')
            if dict(prev_coins_map):
                print(f'prev_coins_map ::: {prev_coins_map}')
                filtered_map = pyupbit.map_filtering(prev_coins_map, investable_coins_map)
                print(f'original_map :: {investable_coins_map} / filtered_map :: {filtered_map}')
                investable_coins_map = filtered_map
            if dict(investable_coins_map):
                coins_map = sorted(investable_coins_map.items(), reverse=True, key=(lambda item: item[1]))
                best_coin = list(coins_map[0])[0]
                coin_dynamic_rate = list(coins_map[0])[1]
                slack_message = f'best_coin ::: {best_coin} / change_rate(현재가 - 1차 저항선) ::: {coin_dynamic_rate}%'
                print(slack_message)
                pyupbit.send_message(pyupbit.get_slack_channel(), slack_message)
                return best_coin
        else:
            slack_message = f':meow_code: 살만한 코인이 없습니다.. 10분 후 다시 초기화 작업 시작합니다..'
            print(slack_message)
            time.sleep(600)
            pyupbit.send_message(pyupbit.get_slack_channel(), slack_message)
            return recursive_get_investable_coin_map(prev_coins_map)
def get_best_coin_name(investable_coins_map={}, prev_coins_map={}):
    while True:
        if dict(investable_coins_map):
            print(f'original_map ::: {investable_coins_map}')
            if dict(prev_coins_map):
                print(f'prev_coins_map ::: {prev_coins_map}')
                filtered_map = pyupbit.map_filtering(prev_coins_map, investable_coins_map)
                print(f'original_map :: {investable_coins_map} / filtered_map :: {filtered_map}')
                investable_coins_map = filtered_map
            if dict(investable_coins_map):
                coins_map = sorted(investable_coins_map.items(), reverse=True, key=(lambda item: item[1]))
                best_coin = list(coins_map[0])[0]
                coin_dynamic_rate = list(coins_map[0])[1]
                slack_message = f'best_coin ::: {best_coin} / change_rate(현재가 - 1차 저항선) ::: {coin_dynamic_rate}%'
                print(slack_message)
                pyupbit.send_message(pyupbit.get_slack_channel(), slack_message)
                return best_coin
        else:
            slack_message = f':meow_code: 살만한 코인이 없습니다.. 10분 후 다시 초기화 작업 시작합니다..'
            print(slack_message)
            time.sleep(600)
            pyupbit.send_message(pyupbit.get_slack_channel(), slack_message)
            return recursive_get_investable_coin_map(prev_coins_map)