Revert "[modules/getcrypto] Deal with kraken service downtime"
This reverts commit 3615e60e5b
.
Time to go to sleep, so many mistakes...
This commit is contained in:
parent
3615e60e5b
commit
650e0b933e
3 changed files with 2 additions and 10 deletions
|
@ -34,8 +34,6 @@ def getfromkrak(coin, currency):
|
|||
krakenget = requests.get('https://api.kraken.com/0/public/Ticker?pair='+epair).json()
|
||||
except (RequestException, Exception):
|
||||
return "No connection"
|
||||
if not 'result' in krakenget:
|
||||
return "No data"
|
||||
kethusdask = float(krakenget['result'][tickname]['a'][0])
|
||||
kethusdbid = float(krakenget['result'][tickname]['b'][0])
|
||||
return coin+": "+str((kethusdask+kethusdbid)/2)[0:6]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue