/trades shall only return closed trades

This commit is contained in:
Matthias
2020-07-23 07:50:45 +02:00
parent 8300eb59d4
commit fdc84eef59
5 changed files with 14 additions and 14 deletions

View File

@@ -520,7 +520,7 @@ class Telegram(RPC):
[[arrow.get(trade['open_date']).humanize(),
trade['pair'],
f"{(100 * trade['close_profit']):.2f}% ({trade['close_profit_abs']})"]
for trade in trades['trades'] if trade['close_profit'] is not None],
for trade in trades['trades']],
headers=[
'Open Date',
'Pair',