Skip to content

Commit 61a6576

Browse files
committed
fix incorrect format calculation
1 parent f42a374 commit 61a6576

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bot/crypto.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def get_currency_change(tickers):
5656

5757
def format_report(report):
5858
msg = "#### Marché actuel:\n"
59-
currency_change = 1/get_currency_change(report['tickers'])
59+
currency_change = get_currency_change(report['tickers'])
6060
for symbol, qty in report['balances'].items():
6161
ticker = get_ticker(report['tickers'], symbol)
6262
value = round(qty*ticker*currency_change,2)

0 commit comments

Comments
 (0)