mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Simplify trade_statistics function
This commit is contained in:
parent
fa79c48c8f
commit
c3516dbba6
|
@ -507,7 +507,6 @@ class RPC:
|
||||||
trade.pair, side='exit', is_short=trade.is_short, refresh=False)
|
trade.pair, side='exit', is_short=trade.is_short, refresh=False)
|
||||||
except (PricingError, ExchangeError):
|
except (PricingError, ExchangeError):
|
||||||
current_rate = NAN
|
current_rate = NAN
|
||||||
if isnan(current_rate):
|
|
||||||
profit_ratio = NAN
|
profit_ratio = NAN
|
||||||
profit_abs = NAN
|
profit_abs = NAN
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user