Improve compatibility

This commit is contained in:
Matthias
2022-03-24 20:53:22 +01:00
parent ec63cfd656
commit e894f620c2
9 changed files with 16 additions and 11 deletions

View File

@@ -590,7 +590,7 @@ def text_table_exit_reason(exit_reason_stats: List[Dict[str, Any]], stake_curren
]
output = [[
t.get('exit_reason', t['sell_reason']), t['trades'],
t.get('exit_reason', t.get('sell_reason')), t['trades'],
_generate_wins_draws_losses(t['wins'], t['draws'], t['losses']),
t['profit_mean_pct'], t['profit_sum_pct'],
round_coin_value(t['profit_total_abs'], stake_currency, False),