From d2fc6d7198609a007b447e634c0be81356f38e56 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 9 Aug 2017 00:09:21 +0000 Subject: [PATCH] Fix new krak trigger option decimaling --- price.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/price.py b/price.py index 157de45..f8adabb 100644 --- a/price.py +++ b/price.py @@ -98,7 +98,7 @@ def krak(bot, trigger): try: r=requests.get(kraktrig+coin+'XBT') j=r.json() - stringtosay += "{0} at {1:.2f} on {2:.2f} 24 h {0} volume. ".format(coin, float(j['result']['X'+str(coin)+'XXBT']['c'][0]), float(j['result']['X'+str(coin)+'XXBT']['v'][1])) + stringtosay += "{0} at {1:.8f} on {2:.2f} 24 h {0} volume. ".format(coin, float(j['result']['X'+str(coin)+'XXBT']['c'][0]), float(j['result']['X'+str(coin)+'XXBT']['v'][1])) except: bot.say("Error connecting to Kraken") # if len(coin) > 5 or len(coin) < 2: