Merge pull request #2929 from yazeed/fix_status_table

/status table quick fix
This commit is contained in:
hroff-1902 2020-02-15 23:09:50 +03:00 committed by GitHub
commit 36670fb5d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -168,9 +168,9 @@ class RPC:
profit_str += f" ({fiat_profit:.2f})"
trades_list.append([
trade.id,
trade.pair + '*' if (trade.open_order_id is not None
and trade.close_rate_requested is None) else ''
+ '**' if (trade.close_rate_requested is not None) else '',
trade.pair + ('*' if (trade.open_order_id is not None
and trade.close_rate_requested is None) else '')
+ ('**' if (trade.close_rate_requested is not None) else ''),
shorten_date(arrow.get(trade.open_date).humanize(only_distance=True)),
profit_str
])