Fix new krak trigger option decimaling

This commit is contained in:
root 2017-08-09 00:09:21 +00:00
parent c2c8ed4f67
commit d2fc6d7198
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ def krak(bot, trigger):
try: try:
r=requests.get(kraktrig+coin+'XBT') r=requests.get(kraktrig+coin+'XBT')
j=r.json() 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: except:
bot.say("Error connecting to Kraken") bot.say("Error connecting to Kraken")
# if len(coin) > 5 or len(coin) < 2: # if len(coin) > 5 or len(coin) < 2: