Add test for 0.0 case

This commit is contained in:
Matthias
2022-05-08 16:04:06 +02:00
parent bfc7898654
commit 4a7515e66a
2 changed files with 13 additions and 3 deletions

View File

@@ -178,7 +178,6 @@ class RPC:
else:
current_rate = trade.close_rate
if len(trade.select_filled_orders(trade.entry_side)) > 0:
logger.warning(trade.select_filled_orders(trade.entry_side))
current_profit = trade.calc_profit_ratio(current_rate)
current_profit_abs = trade.calc_profit(current_rate)
current_profit_fiat: Optional[float] = None