Move formatting of /daily to telegram

so /daily can return numbers in the API
This commit is contained in:
Matthias
2020-08-18 20:12:14 +02:00
parent ce15c55185
commit 375e671aaf
2 changed files with 6 additions and 8 deletions

View File

@@ -305,8 +305,8 @@ class Telegram(RPC):
)
stats_tab = tabulate(
[[day['date'],
f"{day['abs_profit']} {stats['stake_currency']}",
f"{day['fiat_value']} {stats['fiat_display_currency']}",
f"{day['abs_profit']:.8f} {stats['stake_currency']}",
f"{day['fiat_value']:.3f} {stats['fiat_display_currency']}",
f"{day['trade_count']} trades"] for day in stats['data']],
headers=[
'Day',