def working(market='', my_investment={}, prev_profit_rate=100, score=0, has_minus_exp=False):
    coin_candle = pyupbit.view_candle_min(market)
    buy_unit_price = pyupbit.get_my_coin_unit_price(my_investment)
    current_unit_price = pyupbit.get_current_coin_price(coin_candle)
    profit_rate = pyupbit.get_profit_rate(current_unit_price, buy_unit_price)
    score = calc_profit_score(score, prev_profit_rate, profit_rate)
    slack_message1 = f'코인명 ::: {market}(현재빡침점수 : {round(score, 2)}), 매수단가 ::: {buy_unit_price}, 현재단가 ::: {current_unit_price}, 수익률 ::: {str(profit_rate)}%'
    print(slack_message1)
    if (profit_rate < 100):
        has_minus_exp = True
    if (has_minus_exp and (profit_rate >= 100)):
        pyupbit.sell_all()
        pyupbit.send_message(pyupbit.get_slack_channel(), (f'[구사일생으로 팔았음.-{str(datetime.today())}]' + slack_message1))
        print('sell!!')
    elif (score > 5):
        pyupbit.sell_all()
        pyupbit.send_message(pyupbit.get_slack_channel(), (f'[빡쳐서 팔았음!!-{str(datetime.today())}]' + slack_message1))
        print('sell!!')
    elif (profit_rate < 99):
        pyupbit.sell_all()
        pyupbit.send_message(pyupbit.get_slack_channel(), (f'[하락해서 팔았음... -{str(datetime.today())}]' + slack_message1))
        print('sell...')
    else:
        print('thinking...')
    return [profit_rate, score, has_minus_exp]
def working(market=, my_investment={}, prev_profit_rate=100, score=0, has_minus_exp=False):
    coin_candle = pyupbit.view_candle_min(market)
    buy_unit_price = pyupbit.get_my_coin_unit_price(my_investment)
    current_unit_price = pyupbit.get_current_coin_price(coin_candle)
    profit_rate = pyupbit.get_profit_rate(current_unit_price, buy_unit_price)
    score = calc_profit_score(score, prev_profit_rate, profit_rate)
    slack_message1 = f'코인명 ::: {market}(현재빡침점수 : {round(score, 2)}), 매수단가 ::: {buy_unit_price}, 현재단가 ::: {current_unit_price}, 수익률 ::: {str(profit_rate)}%'
    print(slack_message1)
    if (profit_rate < 100):
        has_minus_exp = True
    if (has_minus_exp and (profit_rate >= 100)):
        pyupbit.sell_all()
        pyupbit.send_message(pyupbit.get_slack_channel(), (f'[구사일생으로 팔았음.-{str(datetime.today())}]' + slack_message1))
        print('sell!!')
    elif (score > 5):
        pyupbit.sell_all()
        pyupbit.send_message(pyupbit.get_slack_channel(), (f'[빡쳐서 팔았음!!-{str(datetime.today())}]' + slack_message1))
        print('sell!!')
    elif (profit_rate < 99):
        pyupbit.sell_all()
        pyupbit.send_message(pyupbit.get_slack_channel(), (f'[하락해서 팔았음... -{str(datetime.today())}]' + slack_message1))
        print('sell...')
    else:
        print('thinking...')
    return [profit_rate, score, has_minus_exp]