Browse Source

Fix itbit

283
Neil Booth 9 years ago
parent
commit
650f9b215c
  1. 3
      plugins/exchange_rate.py

3
plugins/exchange_rate.py

@ -186,7 +186,8 @@ class itBit(ExchangeBase):
ccys = ['USD', 'EUR', 'SGD']
json = self.get_json('api.itbit.com', '/v1/markets/XBT%s/ticker' % ccy)
result = dict.fromkeys(ccys)
result[ccy] = Decimal(json['lastPrice'])
if ccy in ccys:
result[ccy] = Decimal(json['lastPrice'])
return result
class LocalBitcoins(ExchangeBase):

Loading…
Cancel
Save