Make sure the fiat converter exists before calling it

This commit is contained in:
Mads Sørensen 2021-04-02 14:50:47 +02:00
parent ede26091b9
commit 3691ae8686

View File

@ -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'],