Imrpove code by reusing available properties

This commit is contained in:
Matthias
2022-01-23 18:59:09 +01:00
parent cc3852daf3
commit 7429f535c1
6 changed files with 7 additions and 8 deletions

View File

@@ -252,8 +252,8 @@ class RPC:
]
if self._config.get('position_adjustment_enable', False):
max_buy = self._config['max_buy_position_adjustment'] + 1
filled_buys = trade.select_filled_orders('buy')
detail_trade.append(f"{len(filled_buys)}/{max_buy}")
filled_buys = trade.nr_of_successful_buys
detail_trade.append(f"{filled_buys}/{max_buy}")
trades_list.append(detail_trade)
profitcol = "Profit"
if self._fiat_converter: