File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -301,7 +301,7 @@ def _rpc_status_table(
301301 # Format profit as a string with the right sign
302302 profit = f"{ trade ['profit_ratio' ]:.2%} "
303303 fiat_profit = trade .get ("profit_fiat" , None )
304- if isnan (fiat_profit ):
304+ if fiat_profit is None or isnan (fiat_profit ):
305305 fiat_profit : float = trade .get ("profit_abs" , 0.0 )
306306 if not isnan (fiat_profit ):
307307 profit += f" ({ fiat_profit :.2f} )"
@@ -314,11 +314,9 @@ def _rpc_status_table(
314314 orders = trade .get ("orders" , [])
315315 if orders :
316316 active_order_side = "." .join (
317- "*"
318- if (o .get ("ft_is_open" ) and o .get ("ft_order_side" ) == trade .get ("entry_side" ))
319- else "**"
317+ "*" if (o .get ("is_open" ) and o .get ("ft_is_entry" )) else "**"
320318 for o in orders
321- if o .get ("ft_is_open " )
319+ if o .get ("is_open " )
322320 )
323321
324322 # Direction string for non-spot
You can’t perform that action at this time.
0 commit comments