Updated unittests

Co-Authored-By: மனோஜ்குமார் பழனிச்சாமி <smartmanoj42857@gmail.com>
This commit is contained in:
Kavinkumar
2022-03-06 17:21:34 +05:30
parent 117e966f34
commit 498aa9c8be
4 changed files with 7 additions and 3 deletions

View File

@@ -193,11 +193,11 @@ class RPC:
stoploss_current_dist_ratio = stoploss_current_dist / current_rate
trade_dict = trade.to_json()
import pprint;logger.info(pprint.pformat(trade_dict))
trade_dict.update(dict(
base_currency=self._freqtrade.config['stake_currency'],
close_profit=trade.close_profit if not trade.is_open else None,
current_rate=current_rate,
realized_profit=trade.realized_profit,
current_profit=current_profit, # Deprecated
current_profit_pct=round(current_profit * 100, 2), # Deprecated
current_profit_abs=current_profit_abs, # Deprecated