Browse Source

Fix itbit

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

1
plugins/exchange_rate.py

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

Loading…
Cancel
Save