def get_coin_info_with_candle(d, market_name):
    market = pyupbit.get_market(d)
    target_price = pyupbit.get_target_price_to_buy(market)
    current_price = pyupbit.get_current_coin_price(d)
    today_open_price = pyupbit.get_today_opening_price(d)
    prev_high_price = pyupbit.get_yesterday_high_price(d)
    prev_low_price = pyupbit.get_yesterday_low_price(d)
    standard_price = pyupbit.calc_standard_line(prev_high_price, prev_low_price, today_open_price)
    first_low_price = pyupbit.first_lower_line(standard_price, prev_high_price)
    second_low_price = pyupbit.second_lower_line(standard_price, prev_high_price, prev_low_price)
    first_high_price = pyupbit.first_higher_line(standard_price, prev_low_price)
    second_high_price = pyupbit.second_higher_line(standard_price, prev_high_price, prev_low_price)
    coin_info = f'''
    현재시간 : {datetime.today()}
    코인명: {market} ({market_name}:{str(pyupbit.get_change_rate(d))}%) 
    opening_p:{str(pyupbit.get_today_opening_price(d))} 
    high_p(오늘[어제]):{str(pyupbit.get_today_high_price(d))}[{str(pyupbit.get_yesterday_high_price(d))}] 
    low_p(오늘[어제]):{str(pyupbit.get_today_low_price(d))}[{str(pyupbit.get_yesterday_low_price(d))}] 
    prev_p:{str(pyupbit.get_yesterday_close_price(d))} 
    change_p:{str(pyupbit.get_change_price(d))}
    기준선 : {standard_price}
    1차 지지선 : {first_low_price}
    2차 지지선 : {second_low_price}
    1차 저항선 : {first_high_price}
    2차 저항선 : {second_high_price}
    목표가 : {first_high_price}
    현재가 : {current_price}
    '''
    return coin_info
def get_coin_info_with_candle(d, market_name):
    market = pyupbit.get_market(d)
    target_price = pyupbit.get_target_price_to_buy(market)
    current_price = pyupbit.get_current_coin_price(d)
    today_open_price = pyupbit.get_today_opening_price(d)
    prev_high_price = pyupbit.get_yesterday_high_price(d)
    prev_low_price = pyupbit.get_yesterday_low_price(d)
    standard_price = pyupbit.calc_standard_line(prev_high_price, prev_low_price, today_open_price)
    first_low_price = pyupbit.first_lower_line(standard_price, prev_high_price)
    second_low_price = pyupbit.second_lower_line(standard_price, prev_high_price, prev_low_price)
    first_high_price = pyupbit.first_higher_line(standard_price, prev_low_price)
    second_high_price = pyupbit.second_higher_line(standard_price, prev_high_price, prev_low_price)
    coin_info = f'
    현재시간 : {datetime.today()}
    코인명: {market} ({market_name}:{str(pyupbit.get_change_rate(d))}%) 
    opening_p:{str(pyupbit.get_today_opening_price(d))} 
    high_p(오늘[어제]):{str(pyupbit.get_today_high_price(d))}[{str(pyupbit.get_yesterday_high_price(d))}] 
    low_p(오늘[어제]):{str(pyupbit.get_today_low_price(d))}[{str(pyupbit.get_yesterday_low_price(d))}] 
    prev_p:{str(pyupbit.get_yesterday_close_price(d))} 
    change_p:{str(pyupbit.get_change_price(d))}
    기준선 : {standard_price}
    1차 지지선 : {first_low_price}
    2차 지지선 : {second_low_price}
    1차 저항선 : {first_high_price}
    2차 저항선 : {second_high_price}
    목표가 : {first_high_price}
    현재가 : {current_price}
    '
    return coin_info