Make sure the fiat converter exists before calling it
This commit is contained in:
parent
ede26091b9
commit
3691ae8686
@ -175,6 +175,7 @@ class RPC:
|
||||
current_profit_abs = trade.calc_profit(current_rate)
|
||||
|
||||
# Calculate fiat profit
|
||||
if self._fiat_converter:
|
||||
current_profit_fiat = self._fiat_converter.convert_amount(
|
||||
current_profit_abs,
|
||||
self._freqtrade.config['stake_currency'],
|
||||
|
Loading…
Reference in New Issue
Block a user