@@ -765,7 +765,6 @@ async def _status_msg(self, update: Update, context: CallbackContext) -> None:
765765 if not o ["ft_is_entry" ] and not o ["ft_order_side" ] == "stoploss"
766766 ]
767767 )
768- r ["exit_reason" ] = r .get ("exit_reason" , "" )
769768 r ["stake_amount_r" ] = fmt_coin (r ["stake_amount" ], r ["quote_currency" ])
770769 r ["max_stake_amount_r" ] = fmt_coin (
771770 r ["max_stake_amount" ] or r ["stake_amount" ], r ["quote_currency" ]
@@ -784,7 +783,7 @@ async def _status_msg(self, update: Update, context: CallbackContext) -> None:
784783 f"*Amount:* `{ r ['amount' ]} ({ r ['stake_amount_r' ]} )`" ,
785784 f"*Total invested:* `{ r ['max_stake_amount_r' ]} `" if position_adjust else "" ,
786785 f"*Enter Tag:* `{ r ['enter_tag' ]} `" if r ["enter_tag" ] else "" ,
787- f"*Exit Reason:* `{ r ['exit_reason' ]} `" if r [ "exit_reason" ] else "" ,
786+ f"*Exit Reason:* `{ r ['exit_reason' ]} `" if r . get ( "exit_reason" ) else "" ,
788787 ]
789788
790789 if position_adjust :
@@ -820,7 +819,7 @@ async def _status_msg(self, update: Update, context: CallbackContext) -> None:
820819 f"({ r ['realized_profit_r' ]} )`" ,
821820 (
822821 f"*Total Profit:* `{ r ['total_profit_ratio' ]:.2%} "
823- f"({ r ['total_profit_abs_r' ]} )`" ,
822+ f"({ r ['total_profit_abs_r' ]} )`"
824823 ),
825824 ]
826825 )
0 commit comments